BackupPC-users

Re: [BackupPC-users] Deleting certain files not working

2012-05-23 17:47:15
Subject: Re: [BackupPC-users] Deleting certain files not working
From: "RYAN M. vAN GINNEKEN" <ryan AT computerking DOT ca>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 23 May 2012 15:45:40 -0600 (MDT)
I'm bumping this thread again as it seems deleting must be possible???? but i keep getting this error for these file

$ /etc/backuppc/BackupPC_deleteFile.pl -h mx1.computerking.ca -r -n - -d 4 f%2fusr%2flocal%2fbackups%2fzimbra
Error: Can't delete root share directory: f%2fusr%2flocal%2fbackups%2fzimbra
backuppc@venus:~/pc$ /etc/backuppc/BackupPC_deleteFile.pl -h mx1.computerking.ca -r -n - -d 4 f%2fusr%2flocal%2fbackups%2fzimbra/fsessions
[mx1.computerking.ca][][0 1][]
  ANTE[mx1.computerking.ca]:
  BAKS[mx1.computerking.ca]: 0 1
  POST[mx1.computerking.ca]:
[mx1.computerking.ca][0] f%2fusr%2flocal%2fbackups%2fzimbra/fsessions: Directory contains hard link: /ffull-20120421.070005.402/faccounts/f9de/f086/f9de08691-ab2f-406e-a105-56c35c702928/fldap_latest.xml ... ABORTING...


See below if you think you might be able to help with my other deleting of file problems



From: "RYAN M. vAN GINNEKEN" <ryan AT computerking DOT ca>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Sent: Saturday, 21 April, 2012 1:44:16 PM
Subject: Re: [BackupPC-users] Deleting certain files not working

Hello  anyoneon this list got tthis script working


From: "RYAN M. vAN GINNEKEN" <ryan AT computerking DOT ca>
To: backuppc-users AT lists.sourceforge DOT net
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
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


------------------------------------------------------------------------------
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
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>