backup Redis
This commit is contained in:
parent
6a9614750d
commit
f66d088636
|
@ -83,6 +83,9 @@ mkdir -p -m 700 /home/backup
|
|||
# > db.addUser("mongobackup", "PASS", true);
|
||||
#mongodump -u mongobackup -pPASS -o /home/backup/mongodump/ >/dev/null 2>&1 |grep -v "^connected to:"
|
||||
|
||||
# Dump Redis
|
||||
# cp /var/lib/redis/dump.rdb /home/backup/
|
||||
|
||||
# Dump MBR / table partitions
|
||||
# dd if=/dev/sda of=/home/backup/MBR bs=512 count=1 2>&1 | egrep -v "(records in|records out|512 bytes)"
|
||||
# sfdisk -d /dev/sda > /home/backup/partitions 2>&1 | egrep -v "(Warning: extended partition does not start at a cylinder boundary|DOS and Linux will interpret the contents differently)"
|
||||
|
|
Loading…
Reference in a new issue