Backup and Restore in UBUNTU

Backup:
cd targetfolder
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz ./

Backup with split

cd targetfolder
tar -cvpz backup.tar.gz --exclude=/backup.tar.gz ./ | split -d -b 3900m - ./backup.tar.gz. 

Export:

tar -xvpzf backup.tar.gz -C targetfolder

Export with concat:

cat *tar.gz* | tar -xvpzf - -C targetfolder
Advertisements

One response to “Backup and Restore in UBUNTU

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: