[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ubuntu-users
Subject:    Re: clone/copy "all' files/users from srvrA to srvrB
From:       bruce <badouglas () gmail ! com>
Date:       2023-12-18 18:28:57
Message-ID: CAP16ngo0CEtpxpoVNZ28QrScAcyBUuJaZKORdEwQhMA1FQ96TQ () mail ! gmail ! com
[Download RAW message or body]

Hi Ralf (again!)

Doing a quick test.. no guts/no glory..

sshpass -p 'big_foo' scp -r  root@1x.3x.5.1:/ /

so I'm on the "local" box and copying from the 1x.3x.5.1 box  to the
local dir/tree

i'm getting
scp: read remote
"/sys/kernel/tracing/events/sched/sched_process_wait/inject" : Failure
scp: Download of file
/sys/kernel/tracing/events/sched/sched_process_wait/inject to
//sys/kernel/tracing/events/sched/sched_process_wait/inject failed

now, the local box also has this file.. when I did a quick ls -al foo

I get things like..
scp: remote open "/sys/kernel/security/integrity/ima/policy": Permission denied
scp: Download of file /sys/kernel/security/integrity/ima/policy to
.//sys/kernel/security/integrity/ima/policy failed
scp: download "/sys/kernel/security/apparmor/.null": not a regular file
scp: download /sys/kernel/security/apparmor/policy: not a regular file

Out of curiosity, I also dir a
root@1x.3x.5.1:/ .    instead of
root@1x.3x.5.1:/ /

to see if anything really changes.. doesn't appear to change much...
 "//"   ".//"
I'm assuming that "/sys" files are "protected"...

I'm letting this run to get to the "/etc"   "/var/www"  to see what happens..

This is all due to digitalocean appearing to have an issue with
duplicating/cloning an instance to another instance using their
website/platform.

thoughts?

On Mon, Dec 18, 2023 at 11:33 AM Ralf Mardorf via ubuntu-users
<ubuntu-users@lists.ubuntu.com> wrote:
>
> Hi,
>
> I can't comment on ssh. However, there is another problem besides the
> ssh problem.
>
> You cannot copy all files of a running Linux installation by itself
> while it's running, unless the file system allows you to make snapshots.
>
> A file system such as ext4 must be copied from another Linux while the
> Linux to be copied is shut down.
>
> Regards,
> Ralf
>
> PS: A brief explanation of cp.
>
> -T avoids gobbing issues
> -a does copy everything (excepted of sockets and other special
>    "files") recursively by preserving permissions and attributes
> -i to prompt before overwriting something, just in case
>
> --
> ubuntu-users mailing list
> ubuntu-users@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

-- 
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic