[CentOS] Copying a live system
Leon Fauster
leonfauster at googlemail.comTue May 3 14:33:32 UTC 2016
- Previous message: [CentOS] Copying a live system
- Next message: [CentOS] Copying a live system
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Am 03.05.2016 um 15:55 schrieb Timothy Murphy <gayleard at eircom.net>: > I want to backup my current CentOS-7.2 system to another drive. > Is it safe to copy the system while it is running? > Eg by > mount /dev/sdb5 /mnt > rsync -HPaxvz /. /mnt/ > I've found contradictory advice on the web. It depends, the running services should answer ... for a mysqld running system: Delete the -x option above and add --exclude /proc --exclude /sys --exclude /mnt --exclude /var/lib/mysql and then mysqldump --add-drop-table -c --create-options -x -u root -p -A > mysqldump-$(date +%s).sql for example ... -- LF
- Previous message: [CentOS] Copying a live system
- Next message: [CentOS] Copying a live system
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list