(Follow most steps with ls -la)
su -
cd /root/wp-backup/
cd wp-installation-files/
rm -R *
cd /root/wp-backup/sql/
rm db.wp__backup.sql
(use next line exactly as is)
mysqldump -u wordpressuser -p wordpress > db.wp__backup.sql
(use password from Keepass2)
cp -rp /var/www/html/wordpress/* /root/wp-backup/wp-installation-files/
cd /root/wp-backup/wp-installation-files/
tar -zcvpf wordpress-backup.tar.gz /root/wp-backup/
(might pay to run mount -a before next step)
rsync -urC --delete /root/wp-backup/wp-installation-files/wordpress-backup.tar.gz /mnt/fishmythstore/bak-wp/
Recent Comments