Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article Backing up files:


Re: Backing up files
Posted by Steve (82.41.xx.xx) on Thu 8 Sep 2005 at 07:51

Creating a gzip'd tar file of a couple of directories and rotating them should be simple enough:

#!/bin/sh

# Create temporary tar file of /etc, /home, etc.
tar -czvf tmp.tar.gz /etc /home  /var/lib/dpkg

# Recycle older ones
mv 4.tar.gz 5.tar.gz
mv 3.tar.gz 4.tar.gz
mv 2.tar.gz 3.tar.gz
mv 1.tar.gz 2.tar.gz

# move temporary one into placwe
mv tmp.tar.gz 1.tar.gz

Still rsnapshot doesn't create compressed archives, because it is more space efficient. Despite containing a weeks worth of backups only changed files are stored after the initial literal copy.

So in practise storing things uncompressed saves you space.

Steve
--


Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search