I just finished backing up
Nextcloud using rsync to a USB drive using Nextcloud's recommended technique
Code: Select all
rsync -Aax nextcloud/ nextcloud-dirbkp_`date +"%Y%m%d"`/
This took
MANY hours to complete. Probably around 8 or there abouts. After completing this and looking at the contents with midnight commander, I wondered why I couldn't just back up what I wanted using midnight commander itself. I ran a little test and discovered the transfer rate started out at 110MB/sec but dropped down to
22MB/sec after about 10 minutes. Perhaps it would continue to drop...
why?
Anyway... is there some magic in the use of rsync or would ol midnight commander have done just fine.
Backing up the MySQL database failed using the Nextcloud example.
Code: Select all
mysqldump --single-transaction -h [server] -u [username] -p[password] [db_name] > nextcloud-sqlbkp_`date +"%Y%m%d"`.bak
it kept insisting my hostname was incorrect. yet PHPmyAdmin shows localhost as the host So I have a bit more to do. Oh bother...
Dave