rsync home to new partition

Jonas Norlander jonorland at gmail.com
Wed Nov 19 12:28:56 UTC 2008


2008/11/18  <list at loampitsfarm.co.uk>:
> After fooling around with rdiff as su I've fouled up my installation of
> Kubuntu. No worries as I've reinstalled in a newly created partition sda6
> mounted as root. The old root partition, sda1 is visible and mounts at
> /media/disk.
>
> Now before I foul up again I'd like a bit of help with the command line to
> rsync the user files from the old home directory to the current home
> directory without copying any hidden or system files.
>
> It'll be along the lines of
> rsync "?" v /home /media/disk/home
>
rsync has a exclude option "--exclude" that you could use to exclude
hidden files.

rsync -r --exclude '.*' src dest

> Next step how to reclaim the space in sda1?
>

Something wrong with the rm command?

/ Jonas




More information about the kubuntu-users mailing list