Difference between revisions of "Backup"

From Anarchaserver
(Created page with "STEP 1 check data usage df -h STEP 2 check access to another virtual machine STEP 3 start screen session in root STEP 4 copy data to virtual machine rsync -ravz --progres...")
 
Line 13: Line 13:




rsync -ravz --progress -e "ssh -p 8022" / root@188.210.92.35:/var/backups/vm/anarcha
rsync -ravz --progress --exclude "/proc" --exclude "/sys" --exclude "/dev" -e "ssh -p 8022" / root@188.210.92.35:/var/backups/vm/anarcha  




Line 23: Line 23:


STEP 5
STEP 5
diagnostic output
diagnostics
watch -n 180 "du -sh /var/backups/anarchaserver"
 
watch
watch -n 180 "du -sh /var/backups/vm/anarcha"
 
proc/kcore is a special directory which is created each time the computer boots
so we have to exclude it from the rsync command
 
bwm-ng
we want to know whether the data is arriving and at which speed, data amount
http://linux.die.net/man/1/bwm-ng
 
apt-get install bwm-ng

Revision as of 20:28, 19 September 2015

STEP 1 check data usage df -h

STEP 2 check access to another virtual machine

STEP 3 start screen session in root

STEP 4 copy data to virtual machine


rsync -ravz --progress --exclude "/proc" --exclude "/sys" --exclude "/dev" -e "ssh -p 8022" / root@188.210.92.35:/var/backups/vm/anarcha


r (recursive) a (archive - for special files) v (verbose) z (compressed)


STEP 5 diagnostics

watch watch -n 180 "du -sh /var/backups/vm/anarcha"

proc/kcore is a special directory which is created each time the computer boots so we have to exclude it from the rsync command

bwm-ng we want to know whether the data is arriving and at which speed, data amount http://linux.die.net/man/1/bwm-ng

apt-get install bwm-ng