Linux Tutorials and Reviews
linuxdo.blogspot.com
Pages
Home
Linux Cheat Sheet
OpenSUSE LAMP Server
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment