btrfs problem 12.04
Johnny Rosenberg
gurus.knugum at gmail.com
Thu Oct 29 08:54:38 UTC 2015
2015-10-29 9:15 GMT+01:00 Tony Baechler <bats at batsupport.com>:
> On 10/28/2015 12:55 PM, Johnny Rosenberg wrote:
>
>> Copying the files from the USB drive from an Ubuntu 14.04 Live USB stick
>> worked fine. The only problem was that I needed to be root to do it, which
>> caused all the files to be owned by root, but I fixed that with a simple
>> find -exec chown command in the Ubuntu 12.04 terminal.
>
>
>
> Not that it matters now, but if you use rsync with the -a switch, it
> preserves file permissions and times.
Yes, I know. I just started Nautilus as root and used the mouse. I guess
didn't think that through before going to action. The -a flag works with
the cp command too, so I guess rsync isn't even necessary in simple cases
as this one.
> I use it all the time for copying files, both locally and from the
> network.
I use it all the time too, in my own daily backup script, which I used to
get the files to the USB drive in the first place. I didn't include recover
in my backup script though, since that operation is so rare. So far it has
been years between each time I would need to recover anything.
> Assuming your USB drive is mounted under /media/1 and the drive you're
> copying to is under /media/2, a command like this should work:
>
> rsync -av /media/1 /media/2
>
> The -v switch turns on verbose output and isn't necessary, but I like to
> know the current file being copied and the speed. The -a switch stands for
> archive and turns on the permissions preservation.
Thanks for your input!
Johnny Rosenberg
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20151029/a64971ed/attachment.html>
More information about the ubuntu-users
mailing list