Re: rsync, what the hey?

ABQLUG <[email protected]>
Newsgroups gmane.org.user-groups.linux.nmglug
Message-ID <[email protected]>
Hi a,

When using rsync, the destination path needs to exist.

rsync -Prvvac /path/to/old/archive /path/to/new/archive

Both of those paths needs to already exist. If they don't you will need 
to mkdir and mount accordingly.

However, your original question is how to change folder/file permissions.

This is how to change which user and group can access/edit a file.
sudo chown username:usergroup /path/to/file

This is how to change which user and group can access/edit a folder and 
everything in that folder:
sudo chown -R username:usergroup /path/to/folder

This is how I would do it on my current system (to change user access to 
a folder):
sudo chown jr:jr /path/to/file

I know to use jr:jr because I did this:

ls -l .bash_history
-rw------- 1 jr jr 69881 May 24 13:34 .bash_history

To do this you will need to be in your user folder.
pwd
/home/jr

I didn't cover chmod, so let us know if you still can't access the 
folder you're trying to access.

Regards,

Jared

On 5/27/19 9:25 AM, a wrote:
> Hi
>
> Can anyone explain, attachment .png of uuid info. error seems to be 
> between  /media/a/uuid and a "switch"  occurs /media/uuid, what the hey/
>
> a@alap:~$ rsync -av --delete --exclude=".*/" /home/a/ 
> /media/your_uuid/backup
> sending incremental file list
> rsync: mkdir "/media/your_uuid/backup" failed: No such file or 
> directory (2)
> rsync error: error in file IO (code 11) at main.c(675) [Receiver=3.1.2]
> a@alap:~$ rsync -av --delete --exclude=".*/" /home/a/ 
> /media/6fbdc743-fc0f-46e4-aea3-8160914c34ec/backup
> sending incremental file list
> rsync: mkdir "/media/6fbdc743-fc0f-46e4-aea3-8160914c34ec/backup" 
> failed: No such file or directory (2)
> rsync error: error in file IO (code 11) at main.c(675) [Receiver=3.1.2]
> a@alap:~$ cd /media/0435f0ab-9dfd-4d9d-ae8b-53101d419ac8
> bash: cd: /media/0435f0ab-9dfd-4d9d-ae8b-53101d419ac8: No such file or 
> directory
> a@alap:~$ mkdir backup
> a@alap:~$ cd /media/a/6fbdc743-fc0f-46e4-aea3-8160914c34ec
> a@alap:/media/a/6fbdc743-fc0f-46e4-aea3-8160914c34ec$ mkdir backup
> mkdir: cannot create directory ‘backup’: File exists
> a@alap:/media/a/6fbdc743-fc0f-46e4-aea3-8160914c34ec$
> a@alap:/media/a/6fbdc743-fc0f-46e4-aea3-8160914c34ec$ cd
> a@alap:~$  rsync -av --delete --exclude=".*/" /home/a/ 
> /media/6fbdc743-fc0f-46e4-aea3-8160914c34ec/backup
> sending incremental file list
> rsync: mkdir "/media/6fbdc743-fc0f-46e4-aea3-8160914c34ec/backup" 
> failed: No such file or directory (2)
> rsync error: error in file IO (code 11) at main.c(675) [Receiver=3.1.2]
> a@alap:~$
>
>
> _______________________________________________
> nmglug mailing list
> [email protected]
> http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org

_______________________________________________
nmglug mailing list
[email protected]
http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.