SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Cant get exclude_file working.
Author Message
Post Cant get exclude_file working. 
Hello,

this maybe a FAQ but sorry couldnt find the answer.

The picture :


Debian rsnapshot 1.3.0-2

In /etc/rsnapshot.conf

exclude_file /etc/rsnapshot.exclude



and in /etc/rsnapshot.exclude

/etc/X11/


Obviously this in not the right way to exlude a directory...


Any help ?


Thanks, Jacques

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Cant get exclude_file working. 
Le 17/09/2011 16:12, Mathias Mader a écrit :

just exclude the dirs in your rsnapshot.conf
...
#include ???
#include ???
#exclude ???
exclude /data/movies
exclude /data/download
...

dont forget to use tabs not spaces


Hi Mathias,

Yes,
exclude /some/dir

works fine for me.



As I dislike to modify config file once set,

I am trying to get

exclude_file /some/file/with_files_to_exclude

as in rsync exclude-from=


J.


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Cant get exclude_file working. 
Am 14.09.2011 22:24, schrieb jacques:
Hello,

this maybe a FAQ but sorry couldnt find the answer.

The picture :


Debian rsnapshot 1.3.0-2

In /etc/rsnapshot.conf

exclude_file /etc/rsnapshot.exclude



and in /etc/rsnapshot.exclude

/etc/X11/


Obviously this in not the right way to exlude a directory...


Any help ?


Thanks, Jacques

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry&reg; mobile platform with sessions, labs& more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

just exclude the dirs in your rsnapshot.conf
...
#include ???
#include ???
#exclude ???
exclude /data/movies
exclude /data/download
...

dont forget to use tabs not spaces


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Cant get exclude_file working. 
On Saturday 17 September 2011, jacques wrote:
As I dislike to modify config file once set,

I am trying to get

exclude_file /some/file/with_files_to_exclude

as in rsync exclude-from=


Why not using rsync's filter files, see man rsync.

For example I have in my config
backup root < at > glaukos:/exports/./home/ ./ +rsync_long_args=--filter='. /backup/conf/filter_glaukos_home'

My /backup/conf/filter_glaukos_home' looks like this:
---------
# exclude dirs in / (i.e /home/)
- /home/guest/
- /home/*/.local/share/Trash/
- .nfs*
- core-*.dump

- *~
- *.old
- *.bak
- *.BAK
- *.orig
- *.a
- *.o
- core

dir-merge /.rsync-filter

# soft excludes, to be overridden by the local .rsync-filter
- .xsession-errors
- *.log
- *.wmv
- *.mp3
- *.avi
- *.mpg
---------------


Note this filter file also merges local .rsync-filter filters from the
backup source directories. This way you never need to touch the global
rsnapshot config and filter. You could even use rsync's options -F only
without having any global filter list on the backup host. But this is a
matter of taste because local filters on the backup source are some kind
of dangerous from the security aspect.


cu,
Rudi

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Cant get exclude_file working. 
Hallo, jacques,

Du meintest am 17.09.11:

just exclude the dirs in your rsnapshot.conf
...
#include ???
#include ???
#exclude ???
exclude /data/movies
exclude /data/download
...

dont forget to use tabs not spaces

exclude /some/dir

works fine for me.

I prefer

exclude /some/dir/*

Then the directory itself is backed up, but not its contents.

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Cant get exclude_file working. 
Hallo, Rüdiger,

Du meintest am 18.09.11:

Why not using rsync's filter files, see man rsync.

For example I have in my config
backup root < at > glaukos:/exports/./home/ ./ +rsync_long_args=--filter='.
/backup/conf/filter_glaukos_home'

My /backup/conf/filter_glaukos_home' looks like this:
---------
# exclude dirs in / (i.e /home/)
- /home/guest/
- /home/*/.local/share/Trash/
- .nfs*
- core-*.dump

[...]

You have re-invented the rsnapshot option "exclude_file"!

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Cant get exclude_file working. 
On Sunday 18 September 2011, Helmut Hullen wrote:
Why not using rsync's filter files, see man rsync.

For example I have in my config
backup root < at > glaukos:/exports/./home/ ./ +rsync_long_args=--filter='
. /backup/conf/filter_glaukos_home'

My /backup/conf/filter_glaukos_home' looks like this:
---------
# exclude dirs in / (i.e /home/)
- /home/guest/
- /home/*/.local/share/Trash/
- .nfs*
- core-*.dump

[...]

You have re-invented the rsnapshot option "exclude_file"!

No, --filter is much more powerful than --exclude-from as you see in my
example filter. And filter files have complete other syntax than the
simple exclude lists.


BTW IMO options like exclude_files are useless overhead for rsnapshot.
rsync_short_args and rsync_long_args is all you need. Then read man
rsync only instead of both rsnapshot's _and_ rsync's manual.

So better say rsnapshot re-invented rsync's --exclude-from instead the
other way around.


cu,
Rudi

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Cant get exclude_file working. 
Jacques,
The method you tried works for me (with trailing slash as in your example). Are you sure
you have a TAB after exclude_file in rsnapshot.conf? The name of the exclude file is
simply passed to rsync, so see the rsync man page for details. It may help to have verbose
mode on for rsync - put in rsnapshot.conf (with TAB separator)
rsync_short_args -av
Regards,
Peter

On Thu, 15 Sep 2011 06:24:58 am jacques wrote:
Hello,

this maybe a FAQ but sorry couldnt find the answer.

The picture :


Debian rsnapshot 1.3.0-2

In /etc/rsnapshot.conf

exclude_file /etc/rsnapshot.exclude



and in /etc/rsnapshot.exclude

/etc/X11/


Obviously this in not the right way to exlude a directory...


Any help ?


Thanks, Jacques

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Cant get exclude_file working. 
On 14/09/11 21:24, jacques wrote:
Hello,

this maybe a FAQ but sorry couldnt find the answer.

The picture :


Debian rsnapshot 1.3.0-2

In /etc/rsnapshot.conf

exclude_file /etc/rsnapshot.exclude



and in /etc/rsnapshot.exclude

/etc/X11/


Obviously this in not the right way to exlude a directory...


Any help ?


Thanks, Jacques
My exclude_file only contains directories under /home, but I found I had
to omit the leading / to get it to work. An extract from my exclude-file
looks like this:

bob/iLiad
bob/sputnik
bob/vostro
bob/bothy
bob/tmp
Shared_Documents/OMG
bob/music
bob/music-old
bob/portable
bob/google-earth
bob/utilities/.utilities
bob/Videos
bob/Videos-HD
bob/Videos-other
bob/Videos_homemade
bob/DaveVideo
bob/Pictures/David/UK
bob/Pictures/David/USA
bob/Pictures/Hilary/local
play/.gvfs
play/Family
play/A
home/music

and the line in rsnapshot.conf that calls it is:

exclude_file /home/bob/bin/excludedfiles

Bob

--
Registered Linux User #463880 FSFE Member #1300
GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E
openSUSE 11.4 64-bit, Kernel 2.6.37.6-0.5-desktop, KDE 4.6.5
Intel Core2 Quad Q9400 2.66GHz, 8GB DDR RAM, nVidia GeForce 9600GT


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
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 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