SearchFAQMemberlist Log in
Reply to topic Page 1 of 2
Goto page 1, 2  Next
rsnapshot is flawed.
Author Message
Post rsnapshot is flawed. 
Hi.

Sorry for the rudeness in the summary.
rsnapshot is offcourse very usable, and it handles backup jobs for heaps
of people without problems!

I've been looking for a sane backup-tool to do my incremental backups to
a remote machine...

rsnapshot seemed perfect at first sight:
- rsync based
- daily, monthly, etc backups, with automatic rotation!
- hard linking to save space
- instant browsability of backups
- simple config files (I used the command line option to specify a
custom config file, and include_conf in that file so I could specify
different snapshot_root's for each "backup job")
- widely used, proven to work
- good documentation

But...

The way rsnapshot only syncs to the top-most interval/retain config
directory (e.g "daily"), while all the subsequent snapshot jobs (e.g.
"weekly"/"monthly") depends on the the first one in this list, is really
flawed, confusing and error prone in my opinion.

When running "rsnapshot weekly" when having "retain daily 3" at the top
in the config file, you'll get a weekly backup _only_ if daily.0 exists,
and regardless of when daily.0 was created.

If you no longer need daily backups, and decide to comment out
"rsnapshot daily" in cron, while forgetting to comment out "retain daily
NUM" in the config file, then your backup plan is completely borked!

In addition to this, it also seems like it is very important to run the
cron daily/weekly/monthly jobs in the correct order, and with a
(uncertain) delay between each of them, in order for rsnapshot to work
correctly.

I also dislike the way rsnapshot forces you to seperate arguments with
<TAB> in the config file.
Especially because my editor (vim) expands all tabs to 4 spaces. It
would be much better if rsnapshot required quotes around the config
arguments that contains spaces.

I hope I'm not offending anyone, but large portions of the rsnapshot
code also seems old and outdated (atleast at first sight), and would
probably benefit alot from some simple refactoring, cleanup and
abstraction. I'm blaming this mostly on the age of the Perl code
(2003-2005).

And..
Why should you have to specify "retain daily 3", "retain weekly 4", and
so on, in the config when you'll have to create seperate cron-jobs for
all of these anyway?
It doesn't make sense?

It would be better to specify this on the command line. Something like:
rsnapshot daily 3
rsnapshot weekly 4

Or even (the way I'd like it):
rsnapshot -c htpc.conf -s daily -k 3
rsnapshot -c htpc.conf -s weekly -k 4
rsnapshot -c laptop.conf -s daily -k 30
rsnapshot -c laptop.conf -s weekly -k 6

-c (above) would obviously be the config file to use (containing stuff
like $SNAPSHOT_ROOT, $SNAPSHOT_NAME, $DESTINATION)
-s would specify the $SNAPSHOT_SUBNAME (e.g daily/weekly/monthly)
-k would specify number of files to keep for
$SNAPSHOT_NAME.$SNAPSHOT_SUBNAME* in $SNAPSHOT_ROOT


I created a bash script which serves like a proof of concept for what
I'd like to do.
It doesn't support different config files, and it doesn't parse command
line arguments like in the example above, but it has (imo) a much better
algorithm for dealing with incremental backups!

To create some dirs and files for testing my script, run:
mkdir -p ~/rsnapshot-ng/source
mkdir -p ~/rsnapshot-ng/source/somedir
touch ~/rsnapshot-ng/source/file1
touch ~/rsnapshot-ng/source/somedir/file2
mkdir -p ~/rsnapshot-ng/dest
cd ~/rsnapshot-ng/

Then copy the included script (at the bottom of this mail) to
~/rsnapshot-ng/rsnapshot-ng.sh, and run e.g:
bash rsnapshot-ng.sh daily 2
bash rsnapshot-ng.sh weekly 3

You should now have directories similar to the following, in
~/rsnapshot-ng/dest:
laptop.daily.201204040013
laptop.latest
laptop.monthly.201204040014

If you take a look at the script, you'll see that every backup job
writes to $SNAPSHOT_ROOT/$SNAPSHOT_NAME.$SNAPSHOT_SUBNAME.$DATE (using
$SNAPSHOT_ROOT/$SNAPSHOT_NAME.$SNAPSHOT_SUBNAME.latest as the
--link-dest DIR (rsync specific...)), then removes
$SNAPSHOT_ROOT/$SNAPSHOT_NAME.SNAPSHOT_SUBNAME.latest, before copying
the latest backup dir to
$SNAPSHOT_ROOT/$SNAPSHOT_NAME.SNAPSHOT_SUBNAME.latest with hardlinks.
Lastly it ensures that only the specified number of backups are kept
based on the $KEEP argument.

This solution ensures that the daily/weekly/monthly/etc backups are
actually up-to-date when created, and it also avoids most of the config
pecularities you'll have with rsnapshot.
There are still race condition issues when running multiple backup jobs
simulaniously, but I'm sure that could be solved just with some thought.

What do you guys think?


The actual script, rsnapshot-ng.sh (I threw this together, so bugs or
stupidness might occur):

#!/bin/bash
SOURCE=~/rsnapshot-ng/source
SNAPSHOT_ROOT=~/rsnapshot-ng/dest
SNAPSHOT_NAME=laptop
SNAPSHOT_SUBNAME=$1
KEEP=$2
DATE=`date +%Y%m%d%H%M`
DESTINATION="$SNAPSHOT_ROOT/$SNAPSHOT_NAME.$SNAPSHOT_SUBNAME.$DATE"
LATEST=$SNAPSHOT_NAME.latest

rsync -v -a --delete-excluded --delete --link-dest=../$LATEST $SOURCE
$DESTINATION
rm -r $SNAPSHOT_ROOT/$LATEST/
cp -al $DESTINATION $SNAPSHOT_ROOT/$LATEST/

# Keep only specified number of files matching $NAME.$SUBNAME* in
$BACKUP_ROOT
if [ -n "$KEEP" ]; then
/bin/ls -dt1 $SNAPSHOT_ROOT/$SNAPSHOT_NAME.$SNAPSHOT_SUBNAME* |
tail -n +$(($KEEP+1)) | xargs rm -r
fi


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot is flawed. 
On Wed, Apr 04, 2012 at 01:50:01AM +0200, Espen wrote:

The way rsnapshot only syncs to the top-most interval/retain config
directory (e.g "daily"), while all the subsequent snapshot jobs (e.g.
"weekly"/"monthly") depends on the the first one in this list, is really
flawed, confusing and error prone in my opinion.

When running "rsnapshot weekly" when having "retain daily 3" at the top
in the config file, you'll get a weekly backup _only_ if daily.0 exists,
and regardless of when daily.0 was created.

If you no longer need daily backups, and decide to comment out
"rsnapshot daily" in cron, while forgetting to comment out "retain daily
NUM" in the config file, then your backup plan is completely borked!

Thankfully rsnapshot will tell you "snapshot_root/daily.2 not present
...", although this is a low priority message - priority 3, "show
shell commands and equivalents" where it should probably be priority 2
(the default) meaning "errors".

I've committed a change for this to CVS. In the meantime, turn your
verbosity up a bit to see the warning:

http://rsnapshot.cvs.sourceforge.net/viewvc/rsnapshot/rsnapshot/rsnapshot-program.pl?r1=1.430&r2=1.431

In addition to this, it also seems like it is very important to run the
cron daily/weekly/monthly jobs in the correct order, and with a
(uncertain) delay between each of them, in order for rsnapshot to work
correctly.

Provided you use_lazy_deletes there's no uncertainty.

I also dislike the way rsnapshot forces you to seperate arguments with
<TAB> in the config file.

So do I, but that's a very big change to make to code that has no real
test suite, and doubly so if you want to continue to support older
config files (or auto-convert them).

Especially because my editor (vim) expands all tabs to 4 spaces. It
would be much better if rsnapshot required quotes around the config
arguments that contains spaces.

Quoting is a whole world of hurt when you consider arguments that
might themselves contain quotes. That's why my experimental ground-up
rewrite uses an XML config file. This does, of course, introduce other
problems, as XML is just as annoying to write by hand!

I hope I'm not offending anyone, but large portions of the rsnapshot
code also seems old and outdated (atleast at first sight), and would
probably benefit alot from some simple refactoring, cleanup and
abstraction. I'm blaming this mostly on the age of the Perl code
(2003-2005).

Yes, you're right. I'm scared of cleaning up the code because it
*works* but has no real test suite, so the only way to make sure I don't
break anything is for me to write the test suite first. And to be blunt
I have more interesting things to do in my limited free time.

--
David Cantrell | Reality Engineer, Ministry of Information

Human Rights left unattended may be removed,
destroyed, or damaged by the security services.

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot is flawed. 
Hallo, Espen,

Du meintest am 04.04.12:

The way rsnapshot only syncs to the top-most interval/retain config
directory (e.g "daily"), while all the subsequent snapshot jobs (e.g.
"weekly"/"monthly") depends on the the first one in this list, is
really flawed, confusing and error prone in my opinion.

Sorry - that's the only way I expect from a backup. If something has
changed, I expect these changes only in the actual backup, in no older
backup.

When running "rsnapshot weekly" when having "retain daily 3" at the
top in the config file, you'll get a weekly backup _only_ if daily.0
exists, and regardless of when daily.0 was created.

If you no longer need daily backups, and decide to comment out
"rsnapshot daily" in cron, while forgetting to comment out "retain
daily NUM" in the config file, then your backup plan is completely
borked!

The program cannot decide if I have forgotten this action or if I wish
this behaviour.

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot is flawed. 
On 2012-04-04, Espen wrote:

I also dislike the way rsnapshot forces you to seperate arguments with
<TAB> in the config file.
Especially because my editor (vim) expands all tabs to 4 spaces. It
would be much better if rsnapshot required quotes around the config
arguments that contains spaces.

One way to avoid having vim expand tabs to spaces in your
rsnapshot.conf files is to add a line like this at the bottom:

# vim: noexpandtab

To call attention to those spaces, I highlight them using this in
~/.vim/after/syntax/conf.vim (some of those lines may wrap):

" When using sudoedit to edit /etc/rsnapshot.conf, the actual editing is done
" to a temporary file (e.g., /var/tmp/rsnapshotXXqMRN4N.conf), so the
" condition below has to match the modified name.
"
if expand("<afile>:t") =~ "^rsnapshot\k*.conf$"
" Paramter separators in /etc/rsnapshot.conf must be tabs, not spaces.
syn match rsnapshotParameterLine '^\k\+\s\+' contains=rsnapshotInvalidSeparator
syn match rsnapshotParameterLine '^\k\+\s\+\S\+\s\+' contains=rsnapshotInvalidSeparator
syn match rsnapshotInvalidSeparator ' ' contained containedin=rsnapshotParameterLine
endif

hi def link rsnapshotInvalidSeparator Error

HTH,
Gary


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot is flawed. 
Sorry for the rudeness in my response, as well.

It sounds as if you set rsnapshot up, got it working, then fucked with
the configuration, and now you're pissed because you realize that it's
messed up and doesn't do what you want it to do without modification.
That's the wonderful thing---change it as you see fit.


My thoughts are interspersed.

On Tue, Apr 3, 2012 at 3:50 PM, Espen <espenx3 < at > gmail.com> wrote:
The way rsnapshot only syncs to the top-most interval/retain config
directory (e.g "daily"), while all the subsequent snapshot jobs (e.g.
"weekly"/"monthly") depends on the the first one in this list, is really
flawed, confusing and error prone in my opinion.

It's not at all, in my opinion.
It makes recovery easy, simple, and fast.
This is the expected behaviour, IMO.

When running "rsnapshot weekly" when having "retain daily 3" at the top
in the config file, you'll get a weekly backup _only_ if daily.0 exists,
and regardless of when daily.0 was created.

Why would that matter?
Daily's are run every day, or, as in my case, as often as possible.
Sometimes my daily backup takes 36 hours to run. Sometimes they take
an hour. I'm backing up somewhere between 6 terabytes and
200megabytes. I simply don't care what they're called---as long as
they run and rotate. The name is meaningless.

If you no longer need daily backups, and decide to comment out
"rsnapshot daily" in cron, while forgetting to comment out "retain daily
NUM" in the config file, then your backup plan is completely borked!

rsnapshot is not responsible for your failure to do things correctly
and with care.
It doesnt' know what you want unless you tell it.

In addition to this, it also seems like it is very important to run the
cron daily/weekly/monthly jobs in the correct order, and with a
(uncertain) delay between each of them, in order for rsnapshot to work
correctly.

Indeed. This is well documented. Perhaps large red letters in the
docs would help?
01 05 * * * root /usr/bin/rsnapshot daily
01 04 * * 6 root /usr/bin/rsnapshot weekly
01 03 1 * * root /usr/bin/rsnapshot monthly

I also dislike the way rsnapshot forces you to seperate arguments with
<TAB> in the config file.
Especially because my editor (vim) expands all tabs to 4 spaces. It
would be much better if rsnapshot required quotes around the config
arguments that contains spaces.

This would require a lot of changes to the code.
Quotes aren't good in configurations, for the obvious reasons.
Besides, as has been mentioned, vim does handle tabs.

I hope I'm not offending anyone, but large portions of the rsnapshot
code also seems old and outdated (atleast at first sight), and would
probably benefit alot from some simple refactoring, cleanup and
abstraction. I'm blaming this mostly on the age of the Perl code
(2003-2005).

This is true. However, the developers are unwilling to change things
because right now, it works and is VERY stable.

And..
Why should you have to specify "retain daily 3", "retain weekly 4", and
so on, in the config when you'll have to create seperate cron-jobs for
all of these anyway?
It doesn't make sense?

It does from a server standpoint, but certainly not a machine that's
turned on and off.
It also make sense when you have machines with massive amounts of
data, such as mine, that sometimes take longer to back up than the
interval time. My initial backup took 9 weeks to run. That's not a
typo. Obviously, the rsync had to be run by hand several times. I
would *MUCH* rather rely on the lock than anything else. I know it
won't do duplicate runs if it's locked, so.......

122T /storage/pangea_snapshots/daily.0/
452G /storage/pangea_snapshots/daily.1/
940G /storage/pangea_snapshots/daily.2/
922G /storage/pangea_snapshots/daily.3/
23G /storage/pangea_snapshots/daily.4/
733G /storage/pangea_snapshots/daily.5/
824G /storage/pangea_snapshots/daily.6/
567G /storage/pangea_snapshots/daily.7/

(daily.4 was stopped on purpose, ignore that...)


Anyway, you propose interesting ideas, I'd say implement things as
they work for you.

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot is flawed. 
On 04/04/2012 07:50 AM, Espen wrote:
And..
Why should you have to specify "retain daily 3", "retain weekly 4", and
so on, in the config when you'll have to create seperate cron-jobs for
all of these anyway?
It doesn't make sense?
Can think of one UC for this. The period at which you transfer a backup
to a lower level, N+1, does not equal the number of backups at N. E.g.
three backups with daily frequency, and one with monthly. Of course the
syntax could be changed to:

retain <label> <N> <M>

Where <N> is the number of backups (or size of buffer) at this level and
<M> is when to pull or alternately push a backup from/to the upper/lower
level (buffer) respectively. But actually specifying this in the crontab
or manually seems more verbose and maluable, and probably serves another
UC where you just want to force a given rotation for some reason.

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot is flawed. 
On 04/04/12 00:50, Espen wrote:
Hi.

Sorry for the rudeness in the summary.
rsnapshot is offcourse very usable, and it handles backup jobs for heaps
of people without problems!

I've been looking for a sane backup-tool to do my incremental backups to
a remote machine...

An alternative to rsnapshot is brandysnap, which I wrote because I found
rsnapshot to be awkward in some situations, especially when backups
aren't always able to be made at the expected times.

Brandysnap is not complete yet, but it's usable (at your own risk, as
with any open source software). It's available at:

https://github.com/StarsoftAnalysis/brandysnap

cheers

Chris
--
Chris Dennis cgdennis < at > btinternet.com
Fordingbridge, Hampshire, UK

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot is flawed. 
On Thu, Apr 5, 2012 at 11:22 AM, Chris Dennis <cgdennis < at > btinternet.com> wrote:
On 04/04/12 00:50, Espen wrote:
Hi.

Sorry for the rudeness in the summary.
rsnapshot is offcourse very usable, and it handles backup jobs for heaps
of people without problems!

I've been looking for a sane backup-tool to do my incremental backups to
a remote machine...

An alternative to rsnapshot is brandysnap, which I wrote because I found
rsnapshot to be awkward in some situations, especially when backups
aren't always able to be made at the expected times.

Brandysnap is not complete yet, but it's usable (at your own risk, as
with any open source software).  It's available at:

   https://github.com/StarsoftAnalysis/brandysnap

I personnally do not use rsnapshot because the daily.0 does not mean
anything to the end user.

Furthermore, it is written in Perl.

I use ccollect, written in shell, which makes it usable on small
devices running openwrt:

http://www.nico.schottelius.org/software/ccollect/

--
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-3500762
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot is flawed. 
Hallo, Benjamin,

Du meintest am 05.04.12:

I personnally do not use rsnapshot because the daily.0 does not mean
anything to the end user.

Feel free to use any other name(s) for the intervals in "/etc/
rsnapshot.conf", p.e.

peter
paul
mary

or
one
two
three

or something else.

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot is flawed. 
On 05/04/12 10:36, Benjamin Henrion wrote:
I personnally do not use rsnapshot because the daily.0 does not mean
anything to the end user.

Furthermore, it is written in Perl.

I use ccollect, written in shell, which makes it usable on small
devices running openwrt:

http://www.nico.schottelius.org/software/ccollect/

Thanks for that link -- I haven't seen ccollect before, and it looks
interesting.

cheers

Chris
--
Chris Dennis cgdennis < at > btinternet.com
Fordingbridge, Hampshire, UK

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot is flawed. 
[ Accidentally sent just to Benjamin!! ]


On Thu, Apr 5, 2012 at 5:36 AM, Benjamin Henrion <bh < at > udev.org ([email]bh < at > udev.org[/email])> wrote:
On Thu, Apr 5, 2012 at 11:22 AM, Chris Dennis <cgdennis < at > btinternet.com ([email]cgdennis < at > btinternet.com[/email])> wrote:
On 04/04/12 00:50, Espen wrote:
Hi.

Sorry for the rudeness in the summary.
rsnapshot is offcourse very usable, and it handles backup jobs for heaps
of people without problems!

I've been looking for a sane backup-tool to do my incremental backups to
a remote machine...

An alternative to rsnapshot is brandysnap, which I wrote because I found
rsnapshot to be awkward in some situations, especially when backups
aren't always able to be made at the expected times.

Brandysnap is not complete yet, but it's usable (at your own risk, as
with any open source software).  It's available at:

   https://github.com/StarsoftAnalysis/brandysnap


I personnally do not use rsnapshot because the daily.0 does not mean
anything to the end user.


I do believe he mans the ".0", which is missing legible information about when the dump was made. It's particularly confusing when the backups are intermittent because the targets are confusing: digging for the timestamps is awkward, and easily corrupted by copy operations.
 
Some folks have suggested putting time information in that suffix, and I'd favor it. But I've not found the time to write that into something nthat works well enough for me as it is.

Post rsnapshot is flawed. 
Hallo, Nico,

Du meintest am 05.04.12:

Some folks have suggested putting time information in that suffix,
and I'd favor it.

Sorry - why?
The directory has a time stamp.

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot is flawed. 
On Thu, Apr 5, 2012 at 8:30 AM, Helmut Hullen <Hullen < at > t-online.de ([email]Hullen < at > t-online.de[/email])> wrote:

Hallo, Nico,

Du meintest am 05.04.12:

Some folks have suggested putting time information in that suffix,
and I'd favor it.

Sorry - why?
The directory has a time stamp.

Viele Gruesse!
Helmut

This is an old issue. For me, it would ease trying to restore a tape or other copy of an old backup and being sure not to overwrite it. Also, if I point someone to "daily.20120409-120304", that's likely to be the same backup for me to pull files from, no matter if they happen to wait a day to look at it. And when attempting to recover files with scp, sftp, rsync, or numerous other technologies, it's extra labor to have to peruse the top of the directory tree just to find out when the backup was done.
 
 

Post rsnapshot is flawed. 
Hallo, Nico,

Du meintest am 09.04.12:

Some folks have suggested putting time information in that suffix,
and I'd favor it.

Sorry - why?
The directory has a time stamp.

This is an old issue.

Yes - I know.
If someone really wants this information not only in the time stamp but
in the directory name too he can use a symlink (and that's no simple
job).

One job for "rsnapshot" is renumbering the backups. That's a nasty job
when there is more to do than only changing the suffixes.

Showing the time stamps is mostly the job of a file manager; on Windows
systems p.e. "Windows Explorer", on Linux systems something like
"midnight commander". Working with files from a backup needs working
with a file manager.

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot is flawed. 
Hallo, Nico,

Du meintest am 10.04.12:

Some folks have suggested putting time information in that
suffix, and I'd favor it.

Sorry - why?
The directory has a time stamp.

[...]

One job for "rsnapshot" is renumbering the backups. That's a nasty
job when there is more to do than only changing the suffixes.

And completely unnecessary if you've got timestamps in the backup
names.

Can you please show the program lines (shell or perl or pseudo code) for
this job? Renumbering not the extensions of (p.e.) "daily.x" but
renumbering/shifting somethink like "daily-20120408"? Especially
shifting "daily-xyz" to "weekly-uvw"?

Thank you!

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 2
Goto page 1, 2  Next
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB