Discussion:
[rsnapshot-discuss] Skip directory by placing named file?
J.C. Wren
2016-10-01 18:21:45 UTC
Permalink
Fairly often I have large temporary files I'm working on that I'd rather
didn't get backed up. I know I can create a specifically named directory
and place it in the exclude list, but what I'd like to be able to do is
create a .nobackup file in the directory to have it skipped.

I've read through the docs and did some searching, and I don't see a way to
do this short of writing a script that builds a dynamic exclude file prior
to running rsnapshot.

I'm not missing something obvious, am I? rsnapshot does not support this,
correct?

Thanks,
--jc

Save a life; adopt a shelter animal.
Scott Hess
2016-10-01 18:33:59 UTC
Permalink
Post by J.C. Wren
Fairly often I have large temporary files I'm working on that I'd rather
didn't get backed up. I know I can create a specifically named directory
and place it in the exclude list, but what I'd like to be able to do is
create a .nobackup file in the directory to have it skipped.
I've read through the docs and did some searching, and I don't see a way
to do this short of writing a script that builds a dynamic exclude file
prior to running rsnapshot.
I'm not missing something obvious, am I? rsnapshot does not support this,
correct?
I have "nobackup" listed in my excludes (with a note that maybe it should
be "nobackup/", so YMMV). That skips any directory or file with that
name. It's not what you asked for, but it was the way I solved a similar
problem.

-scott
Sam Pinkus
2016-10-02 01:37:08 UTC
Permalink
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
J.C. Wren
2016-10-02 02:02:41 UTC
Permalink
That's a most excellent idea. The advantage of that over Scott's "nobackup"
directory is that I don't have to worry about naming conventions.

Thanks!

--jc

Save a life; adopt a shelter animal.
Post by J.C. Wren
I've read through the docs and did some searching, and I don't see a way
to do this short of writing a script that builds a dynamic exclude file
prior to running rsnapshot.
I'm not missing something obvious, am I? rsnapshot does not support this,
correct?
Haven't used it but couldn't you use --cvs-exclude rsync option and a
Finally, any file is ignored if it is in the same directory as a
.cvsignore file and matches one of the patterns listed therein. Unlike
rsync’s filter/exclude files, these patterns are split on
whitespace. See the cvs(1) manual for more information.
--
*PGP*: 0xA53455C1
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
rsnapshot-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Continue reading on narkive:
Loading...