Re: [BackupPC-users] Incremental backup: What files changed?
Hi Luis, > Did a script, largely based on BackupPC_deleteBackup by Matthias > Meyer > > I'm not pro, but i'm sure it won't harm your files, but still, take it as > is. > > see > ./BackupPC_listChangedFiles -h Thank you, I tried it out on one server and it looks very useful. It doesn't immediately work on a redhat system (/etc/BackupPC, location of BackupPC_zcat) but they are trival things to fix up. Thanks again for sharing it. Regards, Chris Bennett cgb -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Incremental backup: What files changed?
Did a script, largely based on BackupPC_deleteBackup by Matthias Meyer I'm not pro, but i'm sure it won't harm your files, but still, take it as is. see ./BackupPC_listChangedFiles -h It can be used like this, for example sudo /usr/share/backuppc/bin/BackupPC_listChangedFiles -c portatil -n 35 |grep log or sudo /usr/share/backuppc/bin/BackupPC_listChangedFiles -c portatil -n 35 |awk '{print $3}' and try sudo /usr/share/backuppc/bin/BackupPC_listChangedFiles -c -l Regards Luis BackupPC_listChangedFiles Description: Binary data -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Incremental backup: What files changed?
Thank you, Jeffrey But again, I'm counting lines starting with " create" in the backup log. No attrib files there. On Wed, Apr 7, 2010 at 2:09 AM, Jeffrey J. Kosowsky wrote: > Matthias Meyer wrote at about 08:12:45 +0200 on Monday, April 5, 2010: > > Luis Paulo wrote: > > > > > I was trying to get a way to find what files have changed in an > > > incremental backup. > > > Does any one has a solution for it already? > > > > > > I've look at /var/lib/backuppc/pc//backups and to the XferLOG, > but > > > i'm getting nowhere. > > > I did a manual incremental a few minutes after another, and I get: > > > > > >> echo -e " n type\tFiles\tExist\tNew\tlevel"; \ > > > awk '{print $1," ",$2,"\t",$5,"\t",$7,"\t",$9,"\t",$21}' > > > /var/lib/backuppc/pc/portatil/backups > > > n typeFilesExistNewlevel > > > 35 incr 36 27 43 4 > > > > > > Those are the numbers that appears on the GUI. How they relate (or if) > > > with each other I don't know. (btw, It's a level 4 incremental > following a > > > level 3) > > > > > > But if I count the "create" files on XferLOG.35.z I get *19491* files > (15 > > > pool, 11 same, 0 skip, 0 delete). > > >> /usr/share/backuppc/bin/BackupPC_zcat > > > /var/lib/backuppc/pc/portatil/XferLOG.35.z |grep -c "^ create" > > > > > > Don't know where to go from here. > > > Really appreciate any help. > > > > > > EDIT: I look better to the log and its almost all directories > > > > > > If I exclude directories, I have 10 create (9 regular, 1 p), 15 pool > (10 > > > reg, 3 c, 2 l), 11 same. Create files are logs and pid, as expected. > > > > > >> /usr/share/backuppc/bin/BackupPC_zcat > > > /var/lib/backuppc/pc/portatil/XferLOG.31.z |grep "^ create" |grep -v > "^ > > > create d" > > > > > > Did some tests with other log files and it looks reasonable. Although > it > > > don't show what directories were created, its a start. How it relates > with > > > backups file values beats me. > > > > > > Any one as a better solution, please? Thanks. > > > > The count not only including directories but also the files "attrib". > One in > > each directory. > > I believe your counting (19491 Total files, 10 regular files) can't be > > correct. Regular files must be an odd number because count of > directories > > and attrib files must be an even number. > > > > You can do a "ls -R /var/lib/backuppc/pc//" > > > > I believe that empty directories do not have an attrib file in > them. Perhaps this explains the parity results... > > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > List:https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki:http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ > -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Incremental backup: What files changed?
Matthias Meyer wrote at about 08:12:45 +0200 on Monday, April 5, 2010: > Luis Paulo wrote: > > > I was trying to get a way to find what files have changed in an > > incremental backup. > > Does any one has a solution for it already? > > > > I've look at /var/lib/backuppc/pc//backups and to the XferLOG, but > > i'm getting nowhere. > > I did a manual incremental a few minutes after another, and I get: > > > >> echo -e " n type\tFiles\tExist\tNew\tlevel"; \ > > awk '{print $1," ",$2,"\t",$5,"\t",$7,"\t",$9,"\t",$21}' > > /var/lib/backuppc/pc/portatil/backups > > n typeFilesExistNewlevel > > 35 incr 36 27 43 4 > > > > Those are the numbers that appears on the GUI. How they relate (or if) > > with each other I don't know. (btw, It's a level 4 incremental following a > > level 3) > > > > But if I count the "create" files on XferLOG.35.z I get *19491* files (15 > > pool, 11 same, 0 skip, 0 delete). > >> /usr/share/backuppc/bin/BackupPC_zcat > > /var/lib/backuppc/pc/portatil/XferLOG.35.z |grep -c "^ create" > > > > Don't know where to go from here. > > Really appreciate any help. > > > > EDIT: I look better to the log and its almost all directories > > > > If I exclude directories, I have 10 create (9 regular, 1 p), 15 pool (10 > > reg, 3 c, 2 l), 11 same. Create files are logs and pid, as expected. > > > >> /usr/share/backuppc/bin/BackupPC_zcat > > /var/lib/backuppc/pc/portatil/XferLOG.31.z |grep "^ create" |grep -v "^ > > create d" > > > > Did some tests with other log files and it looks reasonable. Although it > > don't show what directories were created, its a start. How it relates with > > backups file values beats me. > > > > Any one as a better solution, please? Thanks. > > The count not only including directories but also the files "attrib". One in > each directory. > I believe your counting (19491 Total files, 10 regular files) can't be > correct. Regular files must be an odd number because count of directories > and attrib files must be an even number. > > You can do a "ls -R /var/lib/backuppc/pc//" > I believe that empty directories do not have an attrib file in them. Perhaps this explains the parity results... -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Incremental backup: What files changed?
I'm not sure I understand you, but maybe this helps: I'm not counting files. I'm counting lines starting with " create" in the backup log file /var/lib/backuppc/pc//XferLOG..z > /usr/share/backuppc/bin/BackupPC_zcat /var/lib/backuppc/pc/portatil/XferLOG.35.z |grep -c "^ create" 19491 If I exclude directories, I have 10 create files/lines (9 regular, 1 p). The following lists them > /usr/share/backuppc/bin/BackupPC_zcat /var/lib/backuppc/pc/portatil/XferLOG.35.z |grep "^ create" |grep -v "^ create d" create 644 0/01502 dev/.udev/queue.bin create 644 0/0 46141 var/lib/DeviceKit-power/history-charge-T12--24-50.dat create 644 0/02730 var/lib/dhcp3/dhclient.br0.leases create 644 0/0 10518 var/log/ConsoleKit/history create 640 101/4 36033 var/log/auth.log create 640 101/4 165433 var/log/daemon.log create 640 101/4 10134 var/log/syslog create 600 0/01310 var/run/ConsoleKit/database create 644 0/0 486 var/run/motd create p 600 101/103 0 var/run/rsyslog/kmsg Thank you Luis > The count not only including directories but also the files "attrib". One > in > each directory. > I believe your counting (19491 Total files, 10 regular files) can't be > correct. Regular files must be an odd number because count of directories > and attrib files must be an even number. > > You can do a "ls -R /var/lib/backuppc/pc//" > > br > Matthias > -- > Don't Panic > > > > -- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ___ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > List:https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki:http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ > -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Incremental backup: What files changed?
Luis Paulo wrote: > I was trying to get a way to find what files have changed in an > incremental backup. > Does any one has a solution for it already? > > I've look at /var/lib/backuppc/pc//backups and to the XferLOG, but > i'm getting nowhere. > I did a manual incremental a few minutes after another, and I get: > >> echo -e " n type\tFiles\tExist\tNew\tlevel"; \ > awk '{print $1," ",$2,"\t",$5,"\t",$7,"\t",$9,"\t",$21}' > /var/lib/backuppc/pc/portatil/backups > n typeFilesExistNewlevel > 35 incr 36 27 43 4 > > Those are the numbers that appears on the GUI. How they relate (or if) > with each other I don't know. (btw, It's a level 4 incremental following a > level 3) > > But if I count the "create" files on XferLOG.35.z I get *19491* files (15 > pool, 11 same, 0 skip, 0 delete). >> /usr/share/backuppc/bin/BackupPC_zcat > /var/lib/backuppc/pc/portatil/XferLOG.35.z |grep -c "^ create" > > Don't know where to go from here. > Really appreciate any help. > > EDIT: I look better to the log and its almost all directories > > If I exclude directories, I have 10 create (9 regular, 1 p), 15 pool (10 > reg, 3 c, 2 l), 11 same. Create files are logs and pid, as expected. > >> /usr/share/backuppc/bin/BackupPC_zcat > /var/lib/backuppc/pc/portatil/XferLOG.31.z |grep "^ create" |grep -v "^ > create d" > > Did some tests with other log files and it looks reasonable. Although it > don't show what directories were created, its a start. How it relates with > backups file values beats me. > > Any one as a better solution, please? Thanks. The count not only including directories but also the files "attrib". One in each directory. I believe your counting (19491 Total files, 10 regular files) can't be correct. Regular files must be an odd number because count of directories and attrib files must be an even number. You can do a "ls -R /var/lib/backuppc/pc//" br Matthias -- Don't Panic -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Incremental backup: What files changed?
Right. I guess the command gives a good start to see what fles changed, if it is accurate. Then I can check the directory, even get the previous version and make a diff. Thanks For any particular directory you can click the 'history' link while browsing > the > backup and see which versions of each file appear in each of your available > backups. But this is cumbersome if you want to recurse through a large > tree. > > > -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Incremental backup: What files changed?
Luis Paulo wrote: > I was trying to get a way to find what files have changed in an > incremental backup. > Does any one has a solution for it already? > > I've look at /var/lib/backuppc/pc//backups and to the XferLOG, but > i'm getting nowhere. > I did a manual incremental a few minutes after another, and I get: > >> echo -e " n type\tFiles\tExist\tNew\tlevel"; \ > awk '{print $1," ",$2,"\t",$5,"\t",$7,"\t",$9,"\t",$21}' > /var/lib/backuppc/pc/portatil/backups > n typeFilesExistNewlevel > 35 incr 36 27 43 4 > > Those are the numbers that appears on the GUI. How they relate (or if) > with each other I don't know. (btw, It's a level 4 incremental following > a level 3) > > But if I count the "create" files on XferLOG.35.z I get *19491* files > (15 pool, 11 same, 0 skip, 0 delete). >> /usr/share/backuppc/bin/BackupPC_zcat > /var/lib/backuppc/pc/portatil/XferLOG.35.z |grep -c "^ create" > > Don't know where to go from here. > Really appreciate any help. > > EDIT: I look better to the log and its almost all directories > > If I exclude directories, I have 10 create (9 regular, 1 p), 15 pool (10 > reg, 3 c, 2 l), 11 same. Create files are logs and pid, as expected. > > > /usr/share/backuppc/bin/BackupPC_zcat > /var/lib/backuppc/pc/portatil/XferLOG.31.z |grep "^ create" |grep -v > "^ create d" > > Did some tests with other log files and it looks reasonable. Although it > don't show what directories were created, its a start. How it relates > with backups file values beats me. > > Any one as a better solution, please? Thanks. For any particular directory you can click the 'history' link while browsing the backup and see which versions of each file appear in each of your available backups. But this is cumbersome if you want to recurse through a large tree. -- Les Mikesell lesmikes...@gmail.com -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
[BackupPC-users] Incremental backup: What files changed?
I was trying to get a way to find what files have changed in an incremental backup. Does any one has a solution for it already? I've look at /var/lib/backuppc/pc//backups and to the XferLOG, but i'm getting nowhere. I did a manual incremental a few minutes after another, and I get: > echo -e " n type\tFiles\tExist\tNew\tlevel"; \ awk '{print $1," ",$2,"\t",$5,"\t",$7,"\t",$9,"\t",$21}' /var/lib/backuppc/pc/portatil/backups n typeFilesExistNewlevel 35 incr 36 27 43 4 Those are the numbers that appears on the GUI. How they relate (or if) with each other I don't know. (btw, It's a level 4 incremental following a level 3) But if I count the "create" files on XferLOG.35.z I get *19491* files (15 pool, 11 same, 0 skip, 0 delete). > /usr/share/backuppc/bin/BackupPC_zcat /var/lib/backuppc/pc/portatil/XferLOG.35.z |grep -c "^ create" Don't know where to go from here. Really appreciate any help. EDIT: I look better to the log and its almost all directories If I exclude directories, I have 10 create (9 regular, 1 p), 15 pool (10 reg, 3 c, 2 l), 11 same. Create files are logs and pid, as expected. > /usr/share/backuppc/bin/BackupPC_zcat /var/lib/backuppc/pc/portatil/XferLOG.31.z |grep "^ create" |grep -v "^ create d" Did some tests with other log files and it looks reasonable. Although it don't show what directories were created, its a start. How it relates with backups file values beats me. Any one as a better solution, please? Thanks. -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/