- Forums
- Linux Hosting
- How To Tar A Bunch Of Folders
Taring A Bunch Of Folders Is Easy If You Know What Command To Send In The Linux Shell Command Prompt Console [1293], Last Updated: Mon Jun 24, 2024
Webune Tutorials
Wed Nov 04, 2009
0 Comments
461 Visits
welcome to webune,
todays question is: how do you tar a bunch of folders?
the answer is easy.
login to your dedicated server from Webune as root
once you are logged in you will be able to send shell commands.
so lets say you want to make a backup copy of your www pages, easy. this is how you do it
go to your var directory
SHELL COMMAND
cd /var
there in the /var directory, you will find the directory called www - the www is the location of all your web files are located for your website.
so to backup all the files in your website you can use tar. lets say we want to name our backup file as: www-backup.tar.gz so this is how we would do it:
SHELL COMMAND
tar -pcfz www-backup.tar.gz www/
wow!!! amazing, you will see your server will create a file called www-backup.tar.gz, now you can download to your computer and save it as your backup, it will contain all the files from your www folder
did this help you.
please give us your comments, we would like to know why you need this information