Rsync issue trying to backup node

I am trying to use rsync to backup my node so I can reformat my filesystem from ntfs to ext4. Following the instructions I get the following error which I can’t seem to resolve

pi@raspberrypi:~ $ rsync -aP /mnt/mydisk/storjnode/identity/storagenode/ /mnt/storage/storagenode-new/identity/
sending incremental file list
rsync: [Receiver] mkdir "/mnt/storage/storagenode-new/identity" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(787) [Receiver=3.2.3]

Do you actually have a new disk mounted to /mnt/storage/?
If so, did you create a /mnt/storage/storagenode-new/ folder?
If you have, please change owner to pi

sudo chown pi:pi /mnt/storage

Yes I have a new disk mounted there. I’ve just run what you suggested and there is a slightly different error now

pi@raspberrypi:~ $ rsync -aP /mnt/mydisk/storjnode/identity/storagenode/ /mnt/storage/storagenode-new/identity/
sending incremental file list
rsync: [Receiver] mkdir "/mnt/storage/storagenode-new/identity" failed: Permission denied (13)
rsync error: error in file IO (code 11) at main.c(787) [Receiver=3.2.3]

Ok, then

sudo chown -R pi:pi /mnt/storage
sudo chmod -R ug+rwx /mnt/storage
1 Like

Fantastic, thank you! It’s completed the identity folder so will start with the rest :+1:

3 Likes