You are not logged in.

#1 2013-05-23 11:01:01

KSJ
Member
Registered: 2012-07-28
Posts: 23

[SOLVED] Problem with full system backup with rsync

Hello,

I made a backups by following this page:
https://wiki.archlinux.org/index.php/Fu … with_rsync

Then I copied it to another computer, edited grub and fstab and it's almost works.

Commands su and sudo produces:

Cannot set groups, operation not allowed.

Maybe I must change permission of some file in system, because I backup system first to ntfs disk.
And I copied it as root, so it have only root permissions. But I don't know which files must I change.

Thanks

Last edited by KSJ (2013-07-21 18:40:59)

Offline

#2 2013-05-23 11:32:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,422

Re: [SOLVED] Problem with full system backup with rsync

Have you tried googling the error message + is this the exact error message?

http://serverfault.com/questions/176137 … roups-mean gives some hints, although I'm not sure if they're all applicable to Arch.

Offline

#3 2013-05-23 12:10:10

KSJ
Member
Registered: 2012-07-28
Posts: 23

Re: [SOLVED] Problem with full system backup with rsync

No, this doesn't work, but i found it.

# chmod u+s /bin/su
# chmod u+s /usr/bin/sudo

This works

Offline

#4 2013-05-23 12:14:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,422

Re: [SOLVED] Problem with full system backup with rsync

That's what I meant, as you were using su and sudo and not runuser :-)

I have no idea why you were missing the sticky bit though.


Please remember to mark the thread as solved.

Offline

#5 2013-05-24 00:51:00

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,661

Re: [SOLVED] Problem with full system backup with rsync

KSJ wrote:

Maybe I must change permission of some file in system, because I backup system first to ntfs disk.
And I copied it as root, so it have only root permissions. But I don't know which files must I change.

Best not to try. If you backed up to NTFS, the best thing to do is to reinstall and then copy over stuff from your home, crucial config files etc. You will need to adjust ownership and permissions appropriately for everything you copy over from the backup.

NTFS does not preserve ownership and permissions.

Of course, if you still have your original installation, you can make a new backup instead. Just make sure to use a suitable filesystem.

Last edited by cfr (2013-05-24 00:52:17)


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#6 2013-05-24 04:49:56

fukawi2
Forum Moderator
From: .vic.au
Registered: 2007-09-28
Posts: 5,252
Website

Re: [SOLVED] Problem with full system backup with rsync

As cfr has said, backing up a *nix system to NTFS is bad due to the lack of posix permissions support within NTFS. Your ownership and permissions will not be retained. The lack of permissions is what caused your problem in this instance. You could backup to a tar archive (using the -p option) which would preserve this information within the tar, but using rsync to copy file-for-file won't work.

Plus, NTFS yikes

Online

#7 2013-05-24 21:53:27

UnsolvedCypher
Member
Registered: 2012-04-28
Posts: 198

Re: [SOLVED] Problem with full system backup with rsync

A trick that I use when rsyncing to an NTFS disk is to make a truecrypt volume on the NTFS disk that is formatted as ext4. The volume is easily mountable, and you get encryption too.

Offline

#8 2013-07-21 18:40:41

KSJ
Member
Registered: 2012-07-28
Posts: 23

Re: [SOLVED] Problem with full system backup with rsync

thanks, now when I need backup, i use tar and --preserve

Offline

Board footer

Powered by FluxBB