Thursday, November 11, 2010

Backup of Important Files in linux

Vi MyBackupFiles.txt

/etc/passwd
/etc/users
/etc/groups
/home/userName

save and exit by :wq

now

# tar -zcf backup-`date +%Y-%m-%d`.tar.gz -T /MyBackupFiles.txt

No comments:

Post a Comment