From: RYAN M. v. G. <ry...@co...> - 2012-04-21 19:44:36
|
Hello anyoneon this list got tthis script working ----- Original Message ----- From: "RYAN M. vAN GINNEKEN" <ry...@co...> To: bac...@li... Sent: Thursday, 19 April, 2012 4:37:33 PM Subject: [BackupPC-users] Deleting certain files not working Hello all i am having some problems deleting files from my backups using the instructions found here http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=BackupPC_DeleteFile I have gotten the script installed and working for some dirctories like this one backuppc@venus:~$ /var/lib/backuppc/BackupPC_deleteFile.pl -h t420s-1.solar.lan -r -n - -d 4 /f%2fcygdrive%2fc/fIntel [t420s-1.solar.lan][][8 11 12 13 14 15 16][] ANTE[t420s-1.solar.lan]: BAKS[t420s-1.solar.lan]: 8 11 12 13 14 15 16 POST[t420s-1.solar.lan]: LOOKING AT: [t420s-1.solar.lan] [][8 11 12 13 14 15 16][] f%2fcygdrive%2fc/fIntel BAKS[8](0) t420s-1.solar.lan/8/f%2fcygdrive%2fc/fIntel [X][-][-] BAKS[11](1) t420s-1.solar.lan/11/f%2fcygdrive%2fc/fIntel [X][-][-] BAKS[12](1) t420s-1.solar.lan/12/f%2fcygdrive%2fc/fIntel [X][-][-] BAKS[13](1) t420s-1.solar.lan/13/f%2fcygdrive%2fc/fIntel [X][-][-] BAKS[14](1) t420s-1.solar.lan/14/f%2fcygdrive%2fc/fIntel [X][-][-] BAKS[15](3) t420s-1.solar.lan/15/f%2fcygdrive%2fc/fIntel [X][-][-] BAKS[16](3) t420s-1.solar.lan/16/f%2fcygdrive%2fc/fIntel [D][5][C] [16] Adding to delete list: t420s-1.solar.lan/16/f%2fcygdrive%2fc/fIntel [16] Clear attrib file entry: t420s-1.solar.lan/16/f%2fcygdrive%2fc/fIntel **BACKUP: [t420s-1.solar.lan][8](0) **BACKUP: [t420s-1.solar.lan][11](1) **BACKUP: [t420s-1.solar.lan][12](1) **BACKUP: [t420s-1.solar.lan][13](1) **BACKUP: [t420s-1.solar.lan][14](1) **BACKUP: [t420s-1.solar.lan][15](3) **BACKUP: [t420s-1.solar.lan][16](3) [t420s-1.solar.lan][16]f%2fcygdrive%2fc/fIntel [D14][C] t420s-1.solar.lan/16/f%2fcygdrive%2fc/fIntel/fLogs/fIntelChipset.log t420s-1.solar.lan/16/f%2fcygdrive%2fc/fIntel/fLogs/attrib t420s-1.solar.lan/16/f%2fcygdrive%2fc/fIntel/fLogs/fIntelControlCenter.log t420s-1.solar.lan/16/f%2fcygdrive%2fc/fIntel/fLogs/fIntelAMT.log t420s-1.solar.lan/16/f%2fcygdrive%2fc/fIntel/fLogs/fIntelGFX.log t420s-1.solar.lan/16/f%2fcygdrive%2fc/fIntel/fLogs/fIntelGFXCoin.bak rmdir fLogs t420s-1.solar.lan/16/f%2fcygdrive%2fc/fIntel/attrib t420s-1.solar.lan/16/f%2fcygdrive%2fc/fIntel/fExtremeGraphics/attrib rmdir fResource t420s-1.solar.lan/16/f%2fcygdrive%2fc/fIntel/fExtremeGraphics/fCUI/attrib rmdir fCUI rmdir fExtremeGraphics [t420s-1.solar.lan][16]f%2fcygdrive%2fc/attrib [-][W] Files/directories deleted: 1(14) Files/directories copied: 0 Delete attrib set: 0 Attributes cleared: 1 Empty attrib files deleted: 0 Errors: 0 However i have not had any luck with some other dirctories like below not sure what i am doing wrong please help. 1. This one has hard links not sure what do do here maybe the -H option as i do not thing i need the metadatstore either $/var/lib/backuppc/BackupPC_deleteFile.pl -h t420s-1.solar.lan -r -n - -d 4 /f%2fcygdrive%2fc/fProgramData [t420s-1.solar.lan][][8 11 12 13 14 15 16][] ANTE[t420s-1.solar.lan]: BAKS[t420s-1.solar.lan]: 8 11 12 13 14 15 16 POST[t420s-1.solar.lan]: [t420s-1.solar.lan][16] f%2fcygdrive%2fc/fProgramData: Directory contains hard link: /fMicrosoft/fWindows/fDeviceMetadataStore/fen-US/f63921eef-8415-4368-9201-f0df4af5778f.devicemetadata-ms ... ABORTING... 2. This one will not detect or be removed, the $RECYCLE.BIN folder which i know exists by listing it here ls -l /var/lib/backuppc/pc/t420s-1.solar.lan/16/f%2fcygdrive%2fc/ total 460 -rw-r--r-- 2 backuppc backuppc 281 Apr 19 16:12 attrib drwxr-x--- 5 backuppc backuppc 4096 Apr 19 13:43 f$RECYCLE.BIN drwxr-x--- 3 backuppc backuppc 4096 Apr 19 13:44 fNVIDIA ...snip... backuppc@venus:~$ /var/lib/backuppc/BackupPC_deleteFile.pl -h t420s-1.solar.lan -r -n - -d 4 /f%2fcygdrive%2fc/f$RECYLCE.BIN [t420s-1.solar.lan][][8 11 12 13 14 15 16][] ANTE[t420s-1.solar.lan]: BAKS[t420s-1.solar.lan]: 8 11 12 13 14 15 16 POST[t420s-1.solar.lan]: LOOKING AT: [t420s-1.solar.lan] [][8 11 12 13 14 15 16][] **NO DELETIONS ON THIS HOST** Files/directories deleted: 0(0) Files/directories copied: 0 Delete attrib set: 0 Attributes cleared: 0 Empty attrib files deleted: 0 Errors: 0 4. Lastly not sure how to get the right syntax if the folder contains brackets backuppc@venus:~$ /var/lib/backuppc/BackupPC_deleteFile.pl -h t420s-1.solar.lan -r -n - -d 4 /f%2fcygdrive%2fc/f$Program Files (x86) bash: syntax error near unexpected token `(' backuppc@venus:~$ /var/lib/backuppc/BackupPC_deleteFile.pl -h t420s-1.solar.lan -r -n - -d 4 /f%2fcygdrive%2fc/f$ProgramData [t420s-1.solar.lan][][8 11 12 13 14 15 16][] ANTE[t420s-1.solar.lan]: BAKS[t420s-1.solar.lan]: 8 11 12 13 14 15 16 POST[t420s-1.solar.lan]: LOOKING AT: [t420s-1.solar.lan] [][8 11 12 13 14 15 16][] **NO DELETIONS ON THIS HOST** Files/directories deleted: 0(0) Files/directories copied: 0 Delete attrib set: 0 Attributes cleared: 0 Empty attrib files deleted: 0 Errors: 0 backuppc@venus:~$ Computer King CaN-Mail Surveillance King http://computerking.ca http://canmail.org http://surveillanceking.net Surveillance - Sales Service - Hosting Backup Internet Based Surveillance Systems Custom Service Pac kages Secure IMAP Email - Automated Remote Backups - Photo Blogs - Online ERP and Accounting Packages ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ BackupPC-users mailing list Bac...@li... List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ |