Results 1 to 6 of 6

Thread: Backup and Permissions

Hybrid View

  1. #1

    Default 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

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,794
    Blog Entries
    3

    Default Re: Backup and Permissions

    Quote Originally Posted by pe1800 View Post
    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:
    Code:
    ls -lR
    That recursively goes down the file tree.

    Quote Originally Posted by pe1800 View Post
    from /home
    rsync --archive pe1800 (that's my personal directory tree) /media/Lexar (USB
    key) /pe1800 (an empty directory I had set up there)
    At that point, I would have used the command:
    Code:
    rsync --archive pe1800/.  /media/Lexar/pe1800/.
    and that would have avoided the extra directory level.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  3. #3

    Default Re: Backup and Permissions

    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.

    Quote Originally Posted by nrickert View Post
    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:
    Code:
    ls -lR
    That recursively goes down the file tree.


    At that point, I would have used the command:
    Code:
    rsync --archive pe1800/.  /media/Lexar/pe1800/.
    and that would have avoided the extra directory level.

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Backup and Permissions

    On 2013-04-17 04:06, pe1800 wrote:
    >
    > TRYING TO SET UP AN INCREMENTAL BACKUP ROUTINE. I RAN:
    > from /home
    > RSYNC --ARCHIVE PE1800[/B] (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)

  5. #5
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    130

    Default Re: Backup and Permissions

    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

  6. #6

    Default Re: Backup and Permissions

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

    Quote Originally Posted by kasi042 View Post
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •