You are not logged in.

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

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

[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,440

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: 25

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,440

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: 7,131

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)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

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

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
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

Offline

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

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

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: 25

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