Hi,

Matthias Meyer wrote on 20.06.2007 at 17:19:41 [[BackupPC-users] How to move 
TOPDIR to another partition]:
> I running backuppc 3.0 since some days.
> Now I want move the backupdata from /var/lib/backuppc to another partition.
> A simple cp -a /var/lib/backuppc /Backup/backuppc will not work because it 
> copy a new file duplicate for every hardlink onto the new partition and I 
> earn a device full ;-)

that's not actually true, is it?

> I read some threads in the mailing list but they only suggest to reinstall
> and/or move the data.

I know, it's quite tedious. There are so incredibly many threads dealing
with this question, that you need days to read them all. Let's add one more.

> Anybody knows how to move the data?

Yes.

> In worst case it was acceptable for me to loss the data. But I want to kept 
> the config.pl, host-configs and ssh configurations.

They're all not below TOPDIR, are they? Well, ~backuppc/.ssh might be, but
that's really incredibly easy to copy.

Regards,
Holger

P.S.: 'cp -a', 'rsync -H', 'tar' ... anything that preserves hard links. See
      the man pages if in doubt. Whether any of it works depends on your
      amount of data. 'dd' of the partition and then resizing is also
      extremely popular. You can even do that if you don't want to keep the
      whole partition (/var/lib, /var or even /), because you can 'mv' a
      directory with its (arbitrarily complex) contents within a partition
      without touching the contents (if you have the correct permissions,
      that is), eg.:

      # umount /var
      # dd if=/dev/old-partition of=/dev/new-partition bs=1M
      # mount /dev/new-partition /mnt
      # cd /mnt
      # rm <everything except lib/backuppc>
      # mv lib/backuppc/* .
      # rmdir -p lib/backuppc
      # cd /
      # umount /mnt
      # your-favorite-resize-cmd /dev/new-partition

      If you can't umount /var, you can still copy it. Add an
      'fsck /dev/new-partition' before mounting it. Note that your target
      partition of course needs to be at least as big as your source
      partition if you want to do that.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to