SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
"ERROR: Source directory doesnt exist" So. Keep go
Author Message
Post "ERROR: Source directory doesnt exist" So. Keep go 
Surely this has been asked before but how to get around this bug? I.e.
If source directory DNE I get this error - which halts the entire backup:

ERROR: rsnapshot-user.conf on line 221:
ERROR: backup /var/.bu xyz/ - Source directory "/var/.bu" \
doesn't exist

OK fine warn me but dont stop the entire backup! rsync keeps going. One
solution is to use include patterns but its not very verbose.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
Didn't we just talk about this?
Don't use spaces in file names. This is generally regarded as A Bad Thing.



On May 31, 2012, at 23:24, Sam Pinkus <sgpinkus < at > gmail.com> wrote:

Surely this has been asked before but how to get around this bug? I.e.
If source directory DNE I get this error - which halts the entire backup:

ERROR: rsnapshot-user.conf on line 221:
ERROR: backup /var/.bu xyz/ - Source directory "/var/.bu" \
doesn't exist

OK fine warn me but dont stop the entire backup! rsync keeps going. One
solution is to use include patterns but its not very verbose.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
I didn't.

On 06/01/2012 03:31 PM, Ken Woods wrote:
Didn't we just talk about this?
Don't use spaces in file names. This is generally regarded as A Bad Thing.



On May 31, 2012, at 23:24, Sam Pinkus<sgpinkus < at > gmail.com> wrote:

Surely this has been asked before but how to get around this bug? I.e.
If source directory DNE I get this error - which halts the entire backup:

ERROR: rsnapshot-user.conf on line 221:
ERROR: backup /var/.bu xyz/ - Source directory "/var/.bu" \
doesn't exist

OK fine warn me but dont stop the entire backup! rsync keeps going. One
solution is to use include patterns but its not very verbose.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
Hallo, Sam,

Du meintest am 01.06.12:

Surely this has been asked before but how to get around this bug?
I.e. If source directory DNE I get this error - which halts the
entire backup:

ERROR: rsnapshot-user.conf on line 221:
ERROR: backup /var/.bu xyz/ - Source directory "/var/.bu" \
doesn't exist

OK fine warn me but dont stop the entire backup! rsync keeps going.
One solution is to use include patterns but its not very verbose.

Two possible solutions (untested)

backup "/var/.bu xyz/"

or

backup /var/.bu\ xyz/

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
No, guys there is a backup directive/line in the config like this:

backup /var/.bu xyz/


"xyz" is the name of the directory to put it ".bu" in.

On 06/01/2012 03:37 PM, Helmut Hullen wrote:
Hallo, Sam,

Du meintest am 01.06.12:

Surely this has been asked before but how to get around this bug?
I.e. If source directory DNE I get this error - which halts the
entire backup:
ERROR: rsnapshot-user.conf on line 221:
ERROR: backup /var/.bu xyz/ - Source directory "/var/.bu" \
doesn't exist
OK fine warn me but dont stop the entire backup! rsync keeps going.
One solution is to use include patterns but its not very verbose.
Two possible solutions (untested)

backup "/var/.bu xyz/"

or

backup /var/.bu\ xyz/

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
Hallo, Sam,

Du meintest am 01.06.12:

ERROR: rsnapshot-user.conf on line 221:
ERROR: backup /var/.bu xyz/ - Source directory "/var/.bu" \
doesn't exist
OK fine warn me but dont stop the entire backup! rsync keeps going.
One solution is to use include patterns but its not very verbose.

Two possible solutions (untested)

backup "/var/.bu xyz/"

or

backup /var/.bu\ xyz/

[Toppost repaired, fullquote shortened]

No, guys there is a backup directive/line in the config like this:

backup /var/.bu xyz/

Yes - that's clear. And "rsnapshot" sees there 3 informations: "backup",
"/var/.bu" and "xyz/". You have to tell "rsnapshot" that the "space" in
".bu xyz" is a part of the directory name.

Have you tried my 2 proposals?

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
Maybe the confusion is cause because I accidently replaced a tab with
space when correcting the original config line I gave as an example.
Here is the line in context:

...
backup /home/sam/projects user/
backup /home/sam/.vimrc user/
backup /home/sam/.backuper user/
backup /home/sam/.bu xyz/
backup /home/sam/.gnokiirc xyz/
backup /home/sam/.cron xyz/

Its only the /home/sam/.bu line that fails, not because of spaces, but
because I deleted that directory. Im sure this is, well, sort of a bug
depending on how you look at it. I think it is a bug because rsync does
not die when it encounters a source file that does not exist, it just
gives you a warning. So rsnapshot's behaviour is not consistent with
that. I cant see a reason for it. I patched my version of rsnapshot to
not die when it finds a file the does not exist, but warns instead. I
could not find a better solution, was easy enough, and I cant see it
causing a problem? See attached patch.

On 06/01/2012 04:52 PM, Helmut Hullen wrote:
Hallo, Sam,

Du meintest am 01.06.12:

ERROR: rsnapshot-user.conf on line 221:
ERROR: backup /var/.bu xyz/ - Source directory "/var/.bu" \
doesn't exist
OK fine warn me but dont stop the entire backup! rsync keeps going.
One solution is to use include patterns but its not very verbose.
Two possible solutions (untested)

backup "/var/.bu xyz/"

or

backup /var/.bu\ xyz/
[Toppost repaired, fullquote shortened]

No, guys there is a backup directive/line in the config like this:
backup /var/.bu xyz/
Yes - that's clear. And "rsnapshot" sees there 3 informations: "backup",
"/var/.bu" and "xyz/". You have to tell "rsnapshot" that the "space" in
".bu xyz" is a part of the directory name.

Have you tried my 2 proposals?

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
On Fri, Jun 1, 2012 at 2:23 AM, Sam Pinkus <sgpinkus < at > gmail.com> wrote:
Its only the /home/sam/.bu line that fails, not because of spaces, but
because I deleted that directory. Im sure this is, well, sort of a bug
depending on how you look at it. I think it is a bug because rsync does not
die when it encounters a source file that does not exist, it just gives you
a warning. So rsnapshot's behaviour is not consistent with that. I cant see
a reason for it.

rsync not only doesn't die when it can't find the file, it removes
that file from the snapshot.

I would rather have rsnapshot die if something like this happened. My
reason is that either I did remove the source directory or filesystem,
or I moved it somewhere else. In either case, the right thing to do
is to fix the config. Especially in the second case, I need to be
notified that I forgot something when I moved things around, because
now the data is not being backed up. I don't want my backup program
guessing at what I really meant, I want it to complain loudly if I
told it to do anything ambiguous.

-scott

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
Yeah that is one way of looking at it, but Id prefer to be warned loudly
about it, rather than sacrifice the rest of what could be a critical
backup just to motivate me to go fix this one out of place directory.

"One of the toughest obstacles to a good backup strategy is human
nature; if there's any work involved, there's a good chance backups
won't happen." - from http://www.mikerubel.org/computers/rsync_snapshots/

On 06/01/2012 09:29 PM, Scott Hess wrote:
On Fri, Jun 1, 2012 at 2:23 AM, Sam Pinkus<sgpinkus < at > gmail.com> wrote:
Its only the /home/sam/.bu line that fails, not because of spaces, but
because I deleted that directory. Im sure this is, well, sort of a bug
depending on how you look at it. I think it is a bug because rsync does not
die when it encounters a source file that does not exist, it just gives you
a warning. So rsnapshot's behaviour is not consistent with that. I cant see
a reason for it.
rsync not only doesn't die when it can't find the file, it removes
that file from the snapshot.

I would rather have rsnapshot die if something like this happened. My
reason is that either I did remove the source directory or filesystem,
or I moved it somewhere else. In either case, the right thing to do
is to fix the config. Especially in the second case, I need to be
notified that I forgot something when I moved things around, because
now the data is not being backed up. I don't want my backup program
guessing at what I really meant, I want it to complain loudly if I
told it to do anything ambiguous.

-scott


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
On Fri, Jun 1, 2012 at 6:37 AM, Sam Pinkus <sgpinkus < at > gmail.com> wrote:
Yeah that is one way of looking at it, but Id prefer to be warned loudly
about it, rather than sacrifice the rest of what could be a critical backup
just to motivate me to go fix this one out of place directory.

"One of the toughest obstacles to a good backup strategy is human nature; if
there's any work involved, there's a good chance backups won't happen." -
from http://www.mikerubel.org/computers/rsync_snapshots/

Your first paragraph sounds like it's arguing against my point, but
your quote argues for my point. If the entire backup fails, you WILL
fix the problem, ASAP. If you just log a warning, you might fix it,
you might not, you'll get around to it someday. Or maybe you'll
entirely miss the new warning because of the previous three warnings
which you've been letting idle for three months.

If you really have some backups which you kinda-sorta don't care that
much about, and others which are really important, you should split
them into two different configs.

-scott

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
Am Freitag 1 Juni 12 schrieb Scott Hess:
On Fri, Jun 1, 2012 at 2:23 AM, Sam Pinkus <sgpinkus < at > gmail.com>
wrote:
Its only the /home/sam/.bu line that fails, not because of
spaces, but because I deleted that directory. Im sure this is,
well, sort of a bug depending on how you look at it. I think it

is not a bug, it is an important feature.

is a bug because rsync does not die when it encounters a source
file that does not exist, it just gives you a warning. So
rsnapshot's behaviour is not consistent with that.

Consistent with what?

I cant see a reason for it.

I can, and its very important for me!
My rsnapshot often warns about a missing file, because it was
deleted between making the list of files to be updated and updating
them, e.g. mails I just read and then delete.
That is exactly, what I want, because I want to know and then I can
decide, if something went wrong or not.

rsync not only doesn't die when it can't find the file, it
removes that file from the snapshot.

rsync removes them only, if you want them to be removed!
see man rsync
--delete

rsnapshot does call rsync with this option by default, but you can
change that in rsnapshot.conf.

backed up. I don't want my backup program guessing at what I
really meant, I want it to complain loudly if I told it to do
anything ambiguous.

You will have to look carefully at the documentation, because you
have to _know_ and not to _guess_ how to setup your software.
And rsnapshot will do then really fine.
Its not guessing anything, because computers are really very, very
bad at guessing.

--
Herzliche Grüße!
Rolf Muth
Meine Adressen duerfen nicht fuer Werbung verwendet werden!
PGP Public Key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF8DC41935544C89A
fingerprint: C025 3071 8E56 F8F1 250A 5624 F8DC 4193 5544 C89A

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
Consistent with what?
not consistent with the behaviour of both cp and rsync.
I can, and its very important for me! My rsnapshot often warns about a
missing file, because it was deleted between making the list of files
to be updated and updating them, e.g. mails I just read and then
delete. That is exactly, what I want, because I want to know and then
I can decide, if something went wrong or not
Yeah exactly *warn* not die.

Thanks guys,

Sam.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
Hi all.

Sam, read the documentation carefully. As far as I remember, the advice is to sync directories, and then write :

backup /home/sam/projects/ user/projects/

for example.

backing up files one by one is a strange choice to me.

Smile

Have fun,

Jacques


Le 01/06/2012 11:23, Sam Pinkus a écrit : Maybe the confusion is cause because I accidently replaced a tab with space when correcting the original config line I gave as an example. Here is the line in context:

...
backup /home/sam/projects user/
backup /home/sam/.vimrc user/
backup /home/sam/.backuper user/
backup /home/sam/.bu xyz/
backup /home/sam/.gnokiirc xyz/
backup /home/sam/.cron xyz/

Its only the /home/sam/.bu line that fails, not because of spaces, but because I deleted that directory. Im sure this is, well, sort of a bug depending on how you look at it. I think it is a bug because rsync does not die when it encounters a source file that does not exist, it just gives you a warning. So rsnapshot's behaviour is not consistent with that. I cant see a reason for it. I patched my version of rsnapshot to not die when it finds a file the does not exist, but warns instead. I could not find a better solution, was easy enough, and I cant see it causing a problem? See attached patch.

On 06/01/2012 04:52 PM, Helmut Hullen wrote:
Hallo, Sam,

Du meintest am 01.06.12:

ERROR: rsnapshot-user.conf on line 221:
ERROR: backup /var/.bu xyz/ - Source directory "/var/.bu"
doesn't exist
OK fine warn me but dont stop the entire backup! rsync keeps going.
One solution is to use include patterns but its not very verbose.
Two possible solutions (untested)

backup "/var/.bu xyz/"

or

backup /var/.bu xyz/
[Toppost repaired, fullquote shortened]

No, guys there is a backup directive/line in the config like this:
backup /var/.bu xyz/
Yes - that's clear. And "rsnapshot" sees there 3 informations: "backup",
"/var/.bu" and "xyz/". You have to tell "rsnapshot" that the "space" in
".bu xyz" is a part of the directory name.

Have you tried my 2 proposals?

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss


Post "ERROR: Source directory doesnt exist" So. Keep go 
If I understand Sam's setup, what's going on here is that at some point
in the past Sam has gone through and made a list of specific files and
directories within his home directory that he wants rsnapshot to backup.

Later, Sam has deleted one of the directories he told rsnapshot to backup,
and rsnapshot has refused to backup anything at all because one of its
source directories does not exist.

Assuming I got the situation right, I think there are three ways this setup
can work sensibly:

(1) Sam takes care to review his rsnapshot config every time he creates,
deletes or renames a file/directory in his home directory to see whether
the rsnapshot config should be updated to reflect the new file/dir, remove
the old file/dir or change the file/dir name in rsnapshot.conf (depending
on whether he was backing up the old file name, and whether he wants to
backup the new file name).

In this scenario, for the case at hand Sam needs to remove /home/sam/.bu
from rsnapshot.conf soon after removing that directory.

(2) Sam changes the setup to use includes or an include file and tells
rsnapshot the source directory is /home/sam
backup /home/sam/ user/ include=projects,include=.vimrc,include=.backuper,include=.gnokiirc,include=.cron,exclude=*
or
backup /home/sam/ user/ include_file=/home/sam/backup.list,exclude=*
where /home/sam/backup.list contains names of files/directories to be backed up.
For example :-
$ cat /home/sam/backup.list
projects
.vimrc
.backuper
.gnokiirc
.cron
$
By using includes, rsnapshot won't complain that the source directory does not
exist (because it is just checking /home/sam for existence) if one of the files
in the backup list is deleted.

In this scenario, you won't get any errors or warnings if files on the backup
list do not exist. And obviously there is no warning if you create a new file
and dont add it to the backup list.

(3) Sam changes the setup to something like
backup /home/sam/ user/ exclude=dontbackupthisfile,exclude=notthiseither,exclude=*.exe

In other words by default backup everything in /home/sam, but exclude a
few specific files/directories from the backup. If there are a lot of
things to exclude, it might be easier to use something like
exclude_file=/home/sam/nobackup.list
(instead of exclude=...) and then put
dontbackupthisfile
notthiseither
*.exe
as the contents of /home/sam/nobackup.list.

Personally, I'd rather maintain a list of what NOT to backup (as scenario 3),
rather than what to include in backups. If I create a new file in my home
directory, I'd rather the default be to back it up. Disk space is cheap.

On Tue, Jun 05, 2012 at 10:56:52AM +0200, Jacques Foury wrote:

Hi all.
Sam, read the documentation carefully. As far as I remember, the
advice is to sync directories, and then write :
backup /home/sam/projects/ user/projects/
for example.
backing up files one by one is a strange choice to me.
Smile
Have fun,
Jacques
Le 01/06/2012 11:23, Sam Pinkus a écrit :

Maybe the confusion is cause because I accidently replaced a tab
with space when correcting the original config line I gave as an
example. Here is the line in context:
...
backup /home/sam/projects user/
backup /home/sam/.vimrc user/
backup /home/sam/.backuper user/
backup /home/sam/.bu xyz/
backup /home/sam/.gnokiirc xyz/
backup /home/sam/.cron xyz/
Its only the /home/sam/.bu line that fails, not because of spaces,
but because I deleted that directory. Im sure this is, well, sort
of a bug depending on how you look at it. I think it is a bug
because rsync does not die when it encounters a source file that
does not exist, it just gives you a warning. So rsnapshot's
behaviour is not consistent with that. I cant see a reason for it.
I patched my version of rsnapshot to not die when it finds a file
the does not exist, but warns instead. I could not find a better
solution, was easy enough, and I cant see it causing a problem? See
attached patch.
On 06/01/2012 04:52 PM, Helmut Hullen wrote:

Hallo, Sam,
Du meintest am 01.06.12:

ERROR: rsnapshot-user.conf on line 221:
ERROR: backup /var/.bu xyz/ - Source directory "/var/.bu" \
doesn't exist
OK fine warn me but dont stop the entire backup! rsync keeps going.
One solution is to use include patterns but its not very verbose.

Two possible solutions (untested)
backup "/var/.bu xyz/"
or
backup /var/.bu\ xyz/

[Toppost repaired, fullquote shortened]

No, guys there is a backup directive/line in the config like this:
backup /var/.bu xyz/

Yes - that's clear. And "rsnapshot" sees there 3 informations:
"backup",
"/var/.bu" and "xyz/". You have to tell "rsnapshot" that the
"space" in
".bu xyz" is a part of the directory name.
Have you tried my 2 proposals?
Viele Gruesse!
Helmut
-------------------------------------------------------------------
-----------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond.
Discussions
will include endpoint security, mobile security and the latest in
malware
threats.
[1]http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
[2]rsnapshot-discuss < at > lists.sourceforge.net
[3]https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. [4]http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
rsnapshot-discuss mailing list
[5]rsnapshot-discuss < at > lists.sourceforge.net
[6]https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

References

1. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
2. mailto:rsnapshot-discuss < at > lists.sourceforge.net
3. https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
4. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
5. mailto:rsnapshot-discuss < at > lists.sourceforge.net
6. https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss


--
___________________________________________________________________________
David Keegel <djk < at > cyber.com.au> Cyber IT Solutions Pty. Ltd.
http://www.cyber.com.au/~djk/ Linux & Unix Systems Administration



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post "ERROR: Source directory doesnt exist" So. Keep go 
That is an accurate summary. I had realised you could include, or exclude and that is what probably do - like you say disk space is cheap. Thanks for the thorough reply.

On 06/06/2012 05:41 AM, David Keegel wrote: If I understand Sam's setup, what's going on here is that at some point
in the past Sam has gone through and made a list of specific files and
directories within his home directory that he wants rsnapshot to backup.

Later, Sam has deleted one of the directories he told rsnapshot to backup,
and rsnapshot has refused to backup anything at all because one of its
source directories does not exist.

Assuming I got the situation right, I think there are three ways this setup
can work sensibly:

(1) Sam takes care to review his rsnapshot config every time he creates,
deletes or renames a file/directory in his home directory to see whether
the rsnapshot config should be updated to reflect the new file/dir, remove
the old file/dir or change the file/dir name in rsnapshot.conf (depending
on whether he was backing up the old file name, and whether he wants to
backup the new file name).

In this scenario, for the case at hand Sam needs to remove /home/sam/.bu
from rsnapshot.conf soon after removing that directory.

(2) Sam changes the setup to use includes or an include file and tells
rsnapshot the source directory is /home/sam
backup /home/sam/ user/ include=projects,include=.vimrc,include=.backuper,include=.gnokiirc,include=.cron,exclude=*
or
backup /home/sam/ user/ include_file=/home/sam/backup.list,exclude=*
where /home/sam/backup.list contains names of files/directories to be backed up.
For example :-
$ cat /home/sam/backup.list
projects
.vimrc
.backuper
.gnokiirc
.cron
$
By using includes, rsnapshot won't complain that the source directory does not
exist (because it is just checking /home/sam for existence) if one of the files
in the backup list is deleted.

In this scenario, you won't get any errors or warnings if files on the backup
list do not exist. And obviously there is no warning if you create a new file
and dont add it to the backup list.

(3) Sam changes the setup to something like
backup /home/sam/ user/ exclude=dontbackupthisfile,exclude=notthiseither,exclude=*.exe

In other words by default backup everything in /home/sam, but exclude a
few specific files/directories from the backup. If there are a lot of
things to exclude, it might be easier to use something like
exclude_file=/home/sam/nobackup.list
(instead of exclude=...) and then put
dontbackupthisfile
notthiseither
*.exe
as the contents of /home/sam/nobackup.list.

Personally, I'd rather maintain a list of what NOT to backup (as scenario 3),
rather than what to include in backups. If I create a new file in my home
directory, I'd rather the default be to back it up. Disk space is cheap.

On Tue, Jun 05, 2012 at 10:56:52AM +0200, Jacques Foury wrote:

Hi all.
Sam, read the documentation carefully. As far as I remember, the
advice is to sync directories, and then write :
backup /home/sam/projects/ user/projects/
for example.
backing up files one by one is a strange choice to me.
Smile
Have fun,
Jacques
Le 01/06/2012 11:23, Sam Pinkus a �crit :

Maybe the confusion is cause because I accidently replaced a tab
with space when correcting the original config line I gave as an
example. Here is the line in context:
...
backup /home/sam/projects user/
backup /home/sam/.vimrc user/
backup /home/sam/.backuper user/
backup /home/sam/.bu xyz/
backup /home/sam/.gnokiirc xyz/
backup /home/sam/.cron xyz/
Its only the /home/sam/.bu line that fails, not because of spaces,
but because I deleted that directory. Im sure this is, well, sort
of a bug depending on how you look at it. I think it is a bug
because rsync does not die when it encounters a source file that
does not exist, it just gives you a warning. So rsnapshot's
behaviour is not consistent with that. I cant see a reason for it.
I patched my version of rsnapshot to not die when it finds a file
the does not exist, but warns instead. I could not find a better
solution, was easy enough, and I cant see it causing a problem? See
attached patch.
On 06/01/2012 04:52 PM, Helmut Hullen wrote:

Hallo, Sam,
Du meintest am 01.06.12:

ERROR: rsnapshot-user.conf on line 221:
ERROR: backup /var/.bu xyz/ - Source directory "/var/.bu"
doesn't exist
OK fine warn me but dont stop the entire backup! rsync keeps going.
One solution is to use include patterns but its not very verbose.

Two possible solutions (untested)
backup "/var/.bu xyz/"
or
backup /var/.bu xyz/

[Toppost repaired, fullquote shortened]

No, guys there is a backup directive/line in the config like this:
backup /var/.bu xyz/

Yes - that's clear. And "rsnapshot" sees there 3 informations:
"backup",
"/var/.bu" and "xyz/". You have to tell "rsnapshot" that the
"space" in
".bu xyz" is a part of the directory name.
Have you tried my 2 proposals?
Viele Gruesse!
Helmut
-------------------------------------------------------------------
-----------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond.
Discussions
will include endpoint security, mobile security and the latest in
malware
threats.
[1]http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
[2]rsnapshot-discuss < at > lists.sourceforge.net ([email]2]rsnapshot-discuss < at > lists.sourceforge.net[/email])
[3]https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. [4]http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
rsnapshot-discuss mailing list
[5]rsnapshot-discuss < at > lists.sourceforge.net ([email]5]rsnapshot-discuss < at > lists.sourceforge.net[/email])
[6]https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

References

1. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
2. mailto:rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
3. https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
4. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
5. mailto:rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
6. https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss


Display posts from previous:
Reply to topic Page 1 of 1
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