My Rsync Local WordPress Backup Examples

Print Friendly, PDF & Email

Make sure drives are MOUNTED first!

rm -vr –i=no /home/stevee/.cache/google-chrome/Default/Cache/*

mysqldump -u root -p wp > /var/www/quadwp.sql
mysqldump -u root -p DebianAdmin > /var/www/quadDA.sql

Always dry-run with -n first! Check the copy does what it should!!

sudo rsync /var/www /*  /media/stevee/87b55176-f602-48db-ac1c-4fe0101b1a79/www / -vahn

sudo rsync /* /media/stevee/51800665-dd6d-4c80-adf4-cf8c0061d0be/ –delete-excluded –exclude={dev,media,proc,sys,home/stevee/.*} -vahn

rsync /var/www/* /1500/www/ –delete-excluded -vahn

sudo rsync /var/www/* /media/stevee/WinData/www/ –delete-excluded -vahn