Backup and Permissions

Trying to set up an incremental backup routine. I ran:

from /home
rsync --archive pe1800 (that’s my personal directory tree**) /media/Lexar** (USB
key) /pe1800 (an empty directory I had set up there)

I appeared to be working.Using Dolphin to access the memory stick, everything
showed as expected.However, from** /media/Lexar/pe1800, ls -l produced nothing but
just that, pe1800, no sub directories or files listed.**

I tried the whole rsync procedure as** root, with the same result.**

pe1800@linux-gkd7:/home> cd /media/Lexar
pe1800@linux-gkd7**:/media/Lexar> ls -l**
total 48
drwx------ 3 pe1800 users 16384 Jun 17 2012 MicrOffice2010x86
drwx------ 3 pe1800 users 16384 Apr 16 19:13 pe1800
drwx------ 30 pe1800 users 16384 Apr 14 13:34 pe1800-15042013
pe1800@linux-gkd7:/media/Lexar> cd pe1800
pe1800@linux-gkd7:/media/Lexar/pe1800> ls -l
total 16
drwx------ 31 pe1800 users 16384 Apr 16 18:50 pe1800
pe1800@linux-gkd7:/media/Lexar/pe1800>

I attempted to change the permissions, both as pe1800 and as root, through
Dolphin as well as with chmod, and in all cases the system simply ignored my
changes.

pe1800@linux-gkd7:/media/Lexar>** ls -l**
total 48
drwx------ 3 pe1800 users 16384 Jun 17 2012 MicrOffice2010x86
drwx------ 3 pe1800 users 16384 Apr 16 19:13 pe1800
drwx------ 30 pe1800 users 16384 Apr 14 13:34 pe1800-15042013
pe1800@linux-gkd7:/media/Lexar>** chmod g+r pe1800**
pe1800@linux-gkd7:/media/Lexar> ls -l
total 48
drwx------ 3 pe1800 users 16384 Jun 17 2012 MicrOffice2010x86
**drwx------ **3 pe1800 users 16384 Apr 16 19:13 pe1800
drwx------ 30 pe1800 users 16384 Apr 14 13:34 pe1800-15042013
pe1800@linux-gkd7:/media/Lexar>

What am I doing wrong? Your help will be very welcome, thank you

It looks as if you have created “/media/Lexar/pe1800/pe1800” and you are not looking deep enough to find the files.

When listing the files, you can try:


ls -lR

That recursively goes down the file tree.

At that point, I would have used the command:


rsync --archive pe1800/.  /media/Lexar/pe1800/.

and that would have avoided the extra directory level.

On 2013-04-17 04:06, pe1800 wrote:
>
> TRYING TO SET UP AN INCREMENTAL BACKUP ROUTINE. I RAN:
> from /home
> RSYNC --ARCHIVE PE1800 (THAT’S MY PERSONAL DIRECTORY TREE*)
> /MEDIA/LEXAR* (USB
> KEY) /PE1800 (AN EMPTY DIRECTORY I HAD SET UP THERE)

Sorry, this is undecipherable. Please repeat post.

Please use code tags for printouts and commands. Advanced editor, ‘#’
button. Posting in Code Tags - A Guide

And please do not use bold inside, it turns out as uppercase here.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Hi pe1800,

I have to say I am not very familiar with rsync. Just one hint, have you ever tried unison?
Unison File Synchronizer

Usually it is available in one of the repos (not sure which, at the moment).

I find it very convenient, especially when I started as newbie. It has got a lot of options and an optional GUI which comes in handy when trying around or searching for problems.
But it runs smoothly in text mode, from a shell or CRON job. I am using it for quite large backups via nfs to my home server. The man pages and documentation is good, too.

rds

kasi

Thank you, you are so right! I slipped up there…using Dolphin to check the results of my backup I clicked so easily twice and got, in fact, /pe1800/pe1800 without realizing it, but the command prompt is not so easily fooled, you have to spell it out.

This newbie now has his incremental rsync backup working perfectly…onto the next challenge.

Thank you, I got rsync working now but made a note of unison, just in case.