Sunday, October 9, 2011

Creating a backup tar archive

With tar, it is easy to backup whole directory including its permissions.To do this on a directory called 'web', we would type:
tar -pczf web.tar.gz web/
Thus, a tar archive is created and you can restore it with:
tar -pxzf web.tar.gz



0 comments:

Post a Comment