Hey thanks a lot for the response Johan! It's taken me a while to figure out how this is supposed to work and I'm getting closer but still not there.
The file refers to 'tar dumps' but it's unclear to me what that means. Does it assume that my local backups are in a tar.gz format? They are not. They're uncompressed and simply live in a folder named after the hostname. So I created a tar.gz of one of my folders and tried to work on that but BackupPC_dump doesn't seem to find it: Running: zcat /home/backup/my_sql_server/my_sql_server_copy full backup started for directory /samba_shares/ started full dump, share=/samba_shares/ Xfer PIDs are now 6134,6133 xferPids 6134,6133 cmdExecOrEval: about to exec zcat /home/backup/my_sql_server/my_sql_server_copy gzip: /home/backup/my_sql_server/my_sql_server_copy is a directory -- ignored Tar exited with error 512 () status What is the expected value of TarClientCmd? Is it the name of the .gz file? Or a folder which contains the .gz file(s) Same question for FILEAREA. If I were to run BackupPC_dump directly what values can I pass to it? It appears the script is looking for a .tar.gz file named after the hostname. Is that accurate? Am I able to import one folder/mount at a time or is it an all-or-nothing deal? If I'm guessing correctly would the following import local files into the BackupPC pool for the server named "my_web_server"? # - Set TarClientCmd to 'zcat /tmp/bpctar/my_web_server.tar.gz' (as set in FILEAREA below) ... TARGETS="my_sql_server" # Manual target list ... # Your environment FILEAREA=/tmp/bpctar/my_web_server.tar.gz ### unused for seed ### NEWBPC=/mnt/backuppc # Where new backuppc dir is mounted, if moving ### unused for seed ### OLDBPC=/srv/backuppc # Where current backuppc dir is mounted, if moving ### unused for seed ### BPCLNK=/var/lib/backuppc # Where config.pl to in the config, if moving BPCBIN=/usr/share/BackupPC/bin # Where BackupPC_* scripts are located BPCUSR=backuppc # User that runs BackupPC Thanks again for your help! On 2016-05-08 08:24, Johan Ehnberg wrote: Migrate local data into BackupPC pool for remote client Hi, Version 4 supports matching files from the pool. If you are using version 3, the path has to be the same, so you would have to process the tar file to match the host to be backed up. This works fine, I used a similar method here: http://johan.ehnberg.net/backuppc-pre-loading-seeding-and-migrating-moving-script/ You may be able to use tar with --strip-components to work around tar extra paths on the fly. Good luck! Johan On 2016-05-06 17:19, cardiganimpatience wrote: BackupPC is installed and working great for new hosts. Is there a way to take the hundreds of GB from old hosts that exist on the backup server and import them into the BackupPC storage pool? The old backup system uses rsync to dump all files to a local disk on the same server where BackupPC is installed, albeit with incorrect file ownership. I don't want to re-transfer that data over our narrow bandwidth connection if I don't have to. I believe rsync will sort out permissions and timestamps on its own. So far I've created a host in BackupPC and changed the transfer type to 'tar' and successfully imported one of its mount points, but now the tar sharename is called "/home/backup/<servername>/cur/<share>/", where the actual share on the host is simply called /<share>. My intention is to flip the Xfer method from 'tar' to 'rsync' after I get most of the larger shares imported via local tar. Is it necessary to associate the imported files with a specific host or does hard-linking take care of all that? Thanks! +---------------------------------------------------------------------- |This was sent by [email protected] via Backup Central. |Forward SPAM to [email protected]. +---------------------------------------------------------------------- ------------------------------------------------------------------------------ Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
