Le Mon, 5 Feb 2007 20:58:45 -0800, Craig Barratt <[EMAIL PROTECTED]> a écrit :
> daniel writes: > > > Hi everyone. I'm trying to backup all the data of a backuppc > > server. I saw that backuppc 3.0 has a script to copy the directory > > pc/ > > > > So first I used rsync to copy everything except the directory pc/ > > > > rsync -aH --exclude /opt/backuppc/files/pc/ /opt/backuppc/ \ > > [EMAIL PROTECTED]:/opt/backuppc/ > > > > This part works well, it doesn't take too much memory. > > > > Now I'm trying to copy the directory pc with the script. I'd like to > > copy it directly without using a temporary file. So I tried this > > command: > > > > sudo -u backuppc BackupPC_tarPCCopy /opt/backuppc/files/pc/ | gzip > > -c \ | ssh [EMAIL PROTECTED] "(cd /opt/backuppc/files/pc && > > tar xzf -)" > > > > it seems to work but on the sender side (the server I want to > > backup) I've got plenty of error messages like this (in french): > > > > tar: ./127.0.0.1/149/f%2f/fvar/fspool/fsquid/f03/attrib: ne peut > > établir un lien vers `cpool/3/5/3/3530222493619acd2106c996347e9034': > > Aucun fichier ou répertoire de ce type > > That's strange: the path in the hardlink should start with "../cpool" > not "cpool". > > What output do you get when you do this: > > sudo -u backuppc BackupPC_tarPCCopy /opt/backuppc/files/pc/ | tar > tvf - > > In particular, do you see this (correct): > > hrw-r----- craig/None 0 2006-11-30 > 12:00 ./craigdell/12/attrib link > to ../cpool/a/b/d/abde98f8cac551cb9273c093574dff6d > > or this (incorrect): > > hrw-r----- craig/None 0 2006-11-30 > 12:00 ./craigdell/12/attrib link to > cpool/a/b/d/abde98f8cac551cb9273c093574dff6d > > Craig I've just tested this sudo -u backuppc BackupPC_tarPCCopy /opt/backuppc/files/pc/ | tar tvf - and it seems to be ok: hrw-r----- backuppc/backuppc 0 2007-02-10 12:00:31 ./127.0.0.1/5/f%2f/fetc/fe-smith/ftemplates/fetc/attrib lien vers ../cpool/9/1/d/91da064e7cfb069df88fd0cd3ed3af94 drwxr-x--- backuppc/backuppc 4096 2007-02-12 12:00:47 ./127.0.0.1/5/f%2f/fetc/fe-smith/ftemplates/fetc/frc.d/ hrw-r----- backuppc/backuppc 0 2007-02-08 12:00:16 ./127.0.0.1/5/f%2f/fetc/fe-smith/ftemplates/fetc/frc.d/attrib lien vers ../cpool/5/c/3/5c3eac65e38730ad8a965d1f8422572f but when I extract it in the directory pc, I always get the same error messages: tar: ./127.0.0.1/5/f%2f/fetc/fe-smith/ftemplates/fetc/frc.d/finit.d/attrib: ne peut �tablir un lien vers `cpool/4/0/7/407e9cbad687de3d3396506a74c2c360': Aucun fichier ou r�pertoire de ce type If I extract it in the parent directory (/opt/backuppc/files), which contains pool, cpool, pc etc...., it seems to work (no more error messages about hard links), but target directories are created under /opt/backuppc/files instead of /opt/backuppc/files/pc/ (example, backups for host 127.0.0.1 are located in /opt/backuppc/files/127.0.0.1 instead of /opt/backuppc/files/pc/127.0.0.1) I don't understand what I'm doing wrong, the archive seems to contain the good links (pointing to ../cpool/) but when I extract it, hard links seems to point to cpool/). Is there any documentation about the script BackupPC_tarPCCopy on the net? -- Daniel Berteaud FIREWALL-SERVICES SARL. Société de Services en Logiciels Libres Technopôle Montesquieu 33650 MARTILLAC Tel : 05 56 64 15 32 Fax : 05 56 64 82 05 Mail: [EMAIL PROTECTED] Web : http://www.firewall-services.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ BackupPC-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
