Linux Backup Commands
Command
Backup that preserves hard links
Hard link backups
GNU cp
cp -av /source/directory /target/directory
cp -avl /source/directory /target/directoryrsync
rsync -avzPH --stats --delete --delete-excluded /source/directory /target/directoryN/A
cpio
find /source/directory -print -depth|cpio -pdum /target/directory
find /source/directory -print -depth|cpio -pduml /target/directorytar
tar -cSf - /source/directory|tar -xvSpf - -C /target/directoryN/A
dump
(dump -0uanf - /source/directory|restore -xyvf - /target/directory) >& logN/A
Comments
Comments powered by Disqus