home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.suse      Suse is actually not that bad      138,051 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 137,638 of 138,051   
   Carlos E.R. to All   
   Re: yardstick up my behind   
   21 Nov 22 12:46:56   
   
   From: robin_listas@es.invalid   
      
   On 2022-11-20 23:08, Sidney_Kotic wrote:   
   > On 11/20/22 07:02, bad sector wrote:   
   >   
   >> I'm not too rsync wise yet   
   >   
   >  From the first script I ever wrote using rsync...   
   > # set -x   
   > #   
   > #  Basic command:  rsync SOURCE DESTINATION   
   > #   
   > #  The trickery is that using:   
   > #  rsync -lotsofneatoptions gargle /run/media/somemoron/   
   > #  Will either update the gargle directory on /run/media/somemoron,   
   > #  or just create the directory there and copy files.  Notice the   
   > #  placement of the trailing "/".   
   > #   
   > #  The options are:   
   > #  -a        Archive   
   > #  -c        Checksum   
   > #  -m        No empty directories   
   > #  -n        Dry run, make sure to use this the first time!   
   > #  -p        Permissions, which doesn't seem to like "x"   
   > #  -r        Recursive   
   > #  -v        Verbose, removed in all   
   > #  -E        Preserve executability, which doesn't seem to actually   
   work   
   > #   
   > #  --exclude    Something like "--exclude "*.exe", which given the odds   
   > #               that the somewhat...uhhh...unreliable nature   
   of the -p   
   > #               and -E options, make it redundant, definitely   
   sorta,   
   > #               could be, maybe.   
   > #   
   > #  --delete  The most dangerous of them all, this one really, really works!   
   > #            Especially if you get the source/destination   
   reversed, not   
   > #            that I have any experience with this situation.   
   > #   
   > #  --progress  For the terminally bored.   
   > #   
      
   This is mine:   
      
   #Note: consider -c to compare files, not timestamps.   
      
   #    -a, --archive             archive mode; same as -rlptgoD (no -H)   
   #    -r, --recursive           recurse into directories   
   #    -l, --links               copy symlinks as symlinks   
   #    -p, --perms               preserve permissions   
   #    -t, --times               preserve times   
   #    -g, --group               preserve group   
   #    -o, --owner               preserve owner (super-user only)   
   #    -D                        same as --devices --specials   
   #        --devices             preserve device files (super-user only)   
   #        --specials            preserve special files   
   # ----   
   #    -A, --acls                preserve ACLs (implies -p) [non-standard]   
   #    -X, --xattrs              preserve extended attrs (implies -p) [n.s.]   
   #    -H, --hard-links          preserve hard links   
      
   #    -h, --human-readable      output numbers in a human-readable format   
   #        --progress            show progress during transfer   
   #    -P                        same as --partial --progress   
   #        --partial             keep partially transferred files   
   #        --partial-dir=DIR     put a partially transferred file into DIR   
      
      
   --   
   Cheers, Carlos.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca