Discussion:
Incremental backups
Maxime Alarie
2010-05-18 14:11:32 UTC
Permalink
Hi,



I use Karmic 9.1 server, no UI!

I have a server with about 40GB of important documents on it. I have
setup a cronjob to backup a filesystem every night.. But now I would
like to implement incremental backups every day. Because its starting to
take too much space..



The way I do it at the moment is that I tar.gz the file system and
then I rsync to sdb1. Once a week I rsync sdb1 with an external
disk...



I wondering if any of you know a good way to setup incremental backups
using nothing but the shell, since I have no UI on that server..



Thanks.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100518/f3fd6903/attachment.html>
pkaplan1
2010-05-18 14:27:58 UTC
Permalink
I've been using a bash script I found at:
http://samba.anu.edu.au/rsync/examples.html


Paul
----- Original Message -----
From: "Maxime Alarie" <malarie at processia.com>
To: "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com>
Sent: Tuesday, May 18, 2010 10:11:32 AM GMT -05:00 US/Canada Eastern
Subject: Incremental backups




Hi,



I use Karmic 9.1 server, no UI!

I have a server with about 40GB of important documents on it. I have setup a cronjob to backup a filesystem every night.. But now I would like to implement incremental backups every day. Because its starting to take too much space..



The way I do it at the moment is that I tar.gz the file system and then I rsync to sdb1. Once a week I rsync sdb1 with an external disk?



I wondering if any of you know a good way to setup incremental backups using nothing but the shell, since I have no UI on that server..



Thanks.




-- ubuntu-users mailing list ubuntu-users at lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100518/b639abc7/attachment.html>
Maxime Alarie
2010-05-18 14:48:36 UTC
Permalink
Thanks Paul. I have Googled a little bit, and found this Oreilly Book called Backup and Restore. In that book I have found a chapter on rsnapshot and rdiff-backup.



I just tried rdiff-backup and its pretty nice..



All you have to do is rdiff-backup source destination and to restore: rdiff-backup ?r now source destination.



Here is a link to the book: http://oreilly.com/catalog/9780596102463/preview#preview



Regards,













From: ubuntu-users-bounces at lists.ubuntu.com [mailto:ubuntu-users-bounces at lists.ubuntu.com] On Behalf Of pkaplan1 at comcast.net
Sent: 18 May 2010 10:28
To: Ubuntu user technical support,not for general discussions
Subject: Re: Incremental backups



I've been using a bash script I found at:

http://samba.anu.edu.au/rsync/examples.html



Paul


----- Original Message -----
From: "Maxime Alarie" <malarie at processia.com>
To: "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com>
Sent: Tuesday, May 18, 2010 10:11:32 AM GMT -05:00 US/Canada Eastern
Subject: Incremental backups

Hi,



I use Karmic 9.1 server, no UI!

I have a server with about 40GB of important documents on it. I have setup a cronjob to backup a filesystem every night.. But now I would like to implement incremental backups every day. Because its starting to take too much space..



The way I do it at the moment is that I tar.gz the file system and then I rsync to sdb1. Once a week I rsync sdb1 with an external disk?



I wondering if any of you know a good way to setup incremental backups using nothing but the shell, since I have no UI on that server..



Thanks.






-- ubuntu-users mailing list ubuntu-users at lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100518/79a6b887/attachment.html>
H.S.
2010-05-18 15:04:52 UTC
Permalink
Post by Maxime Alarie
Hi,
I use Karmic 9.1 server, no UI!
I have a server with about 40GB of important documents on it. I have
setup a cronjob to backup a filesystem every night.. But now I would
like to implement incremental backups every day. Because its starting to
take too much space..
The way I do it at the moment is that I tar.gz the file system and
then I rsync to sdb1. Once a week I rsync sdb1 with an external
disk...
I wondering if any of you know a good way to setup incremental backups
using nothing but the shell, since I have no UI on that server..
Thanks.
I have used the procedure described here to create a shell script (also
did this in perl and also in python) to create the scrips:
http://www.mikerubel.org/computers/rsync_snapshots/

They are fairly easy to create once you read the link above. One of my
scripts does hourly backups and the other does daily backups. The most
important thing to consider is the directories or paths that you don't
to backup. For example, I exclude all .[Tt]rash*, .[Cc]ache*, tmp/, etc.
files and folders.

I put these rolling snapshots and back ups on a different drive on my
computer (could be on the network as well). That drive is mounted a
read-only normally, but the scrips first remount it to read/write mode,
do their stuff, and reset it back to read-only mode, thus preventing any
accidental deletions.

The advantage of using rsync and the way it handles hard links is that
numerous backups of the same data do not use negligible extra space.
Basically, only the changes take up the extra space. It is quite nifty
actually!
--
Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.
Juan R. de Silva
2010-05-18 23:31:52 UTC
Permalink
Post by H.S.
Post by Maxime Alarie
Hi,
I use Karmic 9.1 server, no UI!
I have a server with about 40GB of important documents on it. I have
setup a cronjob to backup a filesystem every night.. But now I would
like to implement incremental backups every day. Because its starting
to take too much space..
The way I do it at the moment is that I tar.gz the file system and
then I rsync to sdb1. Once a week I rsync sdb1 with an external
disk...
I wondering if any of you know a good way to setup incremental backups
using nothing but the shell, since I have no UI on that server..
Thanks.
I have used the procedure described here to create a shell script (also
http://www.mikerubel.org/computers/rsync_snapshots/
They are fairly easy to create once you read the link above. One of my
scripts does hourly backups and the other does daily backups. The most
important thing to consider is the directories or paths that you don't
to backup. For example, I exclude all .[Tt]rash*, .[Cc]ache*, tmp/, etc.
files and folders.
I put these rolling snapshots and back ups on a different drive on my
computer (could be on the network as well). That drive is mounted a
read-only normally, but the scrips first remount it to read/write mode,
do their stuff, and reset it back to read-only mode, thus preventing any
accidental deletions.
The advantage of using rsync and the way it handles hard links is that
numerous backups of the same data do not use negligible extra space.
Basically, only the changes take up the extra space. It is quite nifty
actually!
I use the same system and I find it working flawlessly. Takes minimum of
storage space and minimum time to make a next daily/weekly/monthly
(whatever your preference is) snapshot.

If you write your script that will run Rsync right way than it is easily
customizable in terms of how many snapshots you want to keep, how often
you want to make them. Basically the same script can be used to make
either daily, and/or weekly, and/or monthly snapshots. (Unless you want
you daily and weekly/monthly backup sets to be different but even then
there is a minimum of customization involved). You only create different
cron jobs.

People do use rdif-backup and some other tools that actually utilize
Rsync under the hood. They probably find them easier to learn, or to
maintain. I'm not sure why...

I personally find it more logical and actually easier to use Rsync
directly instead.
Karl Larsen
2010-05-19 11:36:59 UTC
Permalink
Post by Juan R. de Silva
Post by H.S.
Post by Maxime Alarie
Hi,
I use Karmic 9.1 server, no UI!
I have a server with about 40GB of important documents on it. I have
setup a cronjob to backup a filesystem every night.. But now I would
like to implement incremental backups every day. Because its starting
to take too much space..
The way I do it at the moment is that I tar.gz the file system and
then I rsync to sdb1. Once a week I rsync sdb1 with an external
disk...
I wondering if any of you know a good way to setup incremental backups
using nothing but the shell, since I have no UI on that server..
Thanks.
I have used the procedure described here to create a shell script (also
http://www.mikerubel.org/computers/rsync_snapshots/
They are fairly easy to create once you read the link above. One of my
scripts does hourly backups and the other does daily backups. The most
important thing to consider is the directories or paths that you don't
to backup. For example, I exclude all .[Tt]rash*, .[Cc]ache*, tmp/, etc.
files and folders.
I put these rolling snapshots and back ups on a different drive on my
computer (could be on the network as well). That drive is mounted a
read-only normally, but the scrips first remount it to read/write mode,
do their stuff, and reset it back to read-only mode, thus preventing any
accidental deletions.
The advantage of using rsync and the way it handles hard links is that
numerous backups of the same data do not use negligible extra space.
Basically, only the changes take up the extra space. It is quite nifty
actually!
I use the same system and I find it working flawlessly. Takes minimum of
storage space and minimum time to make a next daily/weekly/monthly
(whatever your preference is) snapshot.
If you write your script that will run Rsync right way than it is easily
customizable in terms of how many snapshots you want to keep, how often
you want to make them. Basically the same script can be used to make
either daily, and/or weekly, and/or monthly snapshots. (Unless you want
you daily and weekly/monthly backup sets to be different but even then
there is a minimum of customization involved). You only create different
cron jobs.
People do use rdif-backup and some other tools that actually utilize
Rsync under the hood. They probably find them easier to learn, or to
maintain. I'm not sure why...
I personally find it more logical and actually easier to use Rsync
directly instead.
Yes I wondered why you bother to gzip the entire software package
and then use rsync to move the one file. You save moving billions of
bytes by using rsync and make a backup of only changed files every hour
and day.

73 Karl
--
Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
Key ID = 3951B48D
H.S.
2010-05-19 00:57:53 UTC
Permalink
Post by H.S.
The advantage of using rsync and the way it handles hard links is that
numerous backups of the same data do not use negligible extra space.
Should be "... backups of the same data use negligible extra space ..."

Sorry for the typo.
--
Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.
Hal Burgiss
2010-05-19 00:06:25 UTC
Permalink
I have a server with about 40GB of important documents? on it.? I have setup
a cronjob to backup a ?filesystem ?every night.. But now I would like to
implement incremental backups every day. Because its starting to take too
much space..
You might look at rsnapshot (its in the repos).
--
Hal
Arun Shrimali
2010-05-20 05:49:19 UTC
Permalink
I have also googled a lot to find out howto - remote incremental backup.
With the patches of various howtos, I have compile a procedure for myself
which may be useful for you also.

http://arun121.blogspot.com/2009/10/remote-incremental-backup-with-rdiff.html

Arun
Post by Maxime Alarie
Hi,
I use Karmic 9.1 server, no UI!
I have a server with about 40GB of important documents on it. I have
setup a cronjob to backup a filesystem every night.. But now I would like
to implement incremental backups every day. Because its starting to take too
much space..
The way I do it at the moment is that I tar.gz the file system and then I
rsync to sdb1. Once a week I rsync sdb1 with an external disk?
I wondering if any of you know a good way to setup incremental backups
using nothing but the shell, since I have no UI on that server..
Thanks.
--
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100520/3b292ba3/attachment.html>
Loading...