SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Get the list of files which were saved in the last rsnapshot
Author Message
Post Get the list of files which were saved in the last rsnapshot 
Hi all,

I wanted to get a list of files which were saved in the last snapshot to optimize my exclude list. This can be done certainly with the log level in rsnapshot.conf to see the list of files which were backuped, but just in case it can help somebody, I share this... What I did is list all files which don't have a hardlink. May be it can be useful for somebody else:

Just go in for example "hourly.0" if it's the last snapshot and run the following command:

ls -aslR | tr -s " " | grep -E " -......... 1 "

Post Get the list of files which were saved in the last rsnapshot 
2011/8/31 Gilles Martin <vongillus < at > gmail.com>:
ls -aslR | tr -s " " | grep -E " -......... 1 "

man find
Smile

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Get the list of files which were saved in the last rsnapshot 
On Wed, Aug 31, 2011 at 3:41 PM, Martin Schröder <martin < at > oneiros.de> wrote:
2011/8/31 Gilles Martin <vongillus < at > gmail.com>:
ls -aslR | tr -s " " | grep -E " -......... 1 "

man find
Smile

Don't you mean 'find hourly.0 | LANG=C sort" ?

the "LANG=C sort" gets it to be sorted in a case-sensitive fashion.

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Get the list of files which were saved in the last rsnapshot 
"Nico" == Nico Kadel-Garcia <nkadel < at > gmail.com> writes:

Nico> On Wed, Aug 31, 2011 at 3:41 PM, Martin Schröder
Nico> <martin < at > oneiros.de> wrote:
2011/8/31 Gilles Martin <vongillus < at > gmail.com>:
ls -aslR | tr -s " " | grep -E " -......... 1 "

man find :-)

Nico> Don't you mean 'find hourly.0 | LANG=C sort" ?

No he means read the manual for `find'.

The original poster's problem (finding all new files in the backup) is
most nicely solved with
find hourly.0 -links 1 -print

Peter C

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Get the list of files which were saved in the last rsnapshot 
Oups, sorry, I actually read "man find" and googled around be may be too quickly!! Much nicer...

2011/9/1 <peterc-rsnapshot < at > chubb.wattle.id.au ([email]peterc-rsnapshot < at > chubb.wattle.id.au[/email])>
>>>>> "Nico" == Nico Kadel-Garcia <nkadel < at > gmail.com ([email]nkadel < at > gmail.com[/email])> writes:

Nico> On Wed, Aug 31, 2011 at 3:41 PM, Martin Schröder
Nico> <martin < at > oneiros.de ([email]martin < at > oneiros.de[/email])> wrote:
2011/8/31 Gilles Martin <vongillus < at > gmail.com ([email]vongillus < at > gmail.com[/email])>:
ls -aslR | tr -s " " | grep -E " -......... 1 "

man find Smile


Nico> Don't you mean 'find hourly.0 | LANG=C sort" ?

No he means read the manual for `find'.

The original poster's problem (finding all new files in the backup) is
most nicely solved with
   find hourly.0 -links 1 -print

Peter C


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
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