Code: Select all
cp -R -u /home/albert/* /media/albert/"Expansion Drive"/albert/
Code: Select all
cp -R -u /home/albert/* /media/albert/"Expansion Drive"/albert/
Code: Select all
cp -R -u /home/albert /media/albert/"Expansion Drive"/albert/
Code: Select all
rsync -aAXv /home/albert /media/albert/"Expansion Drive"/albert/
That's not what happens when I use rsync(1) but I have never tried using `cp -u` beforehand.uthappam wrote:I ran the rsync command you gave and it copied all the files -- which would not have happened with cp -u. It was a waste of time.
Watch those trailing slashes if you want to define the folder structureuthappam wrote:What the rsync command did was copy over a second complete directory tree
Yes there was, read the man page...uthappam wrote:There was no r switch in the rsync command you gave
Code: Select all
alias work.backup='sudo rsync -azhv --delete /home/russel/Documents/work_files/ /media/russel/Backup_Drive/work.files.backup'
Code: Select all
bash: ll: command not found
Code: Select all
alias ll=ls -l
Code: Select all
ls -l
Code: Select all
alias
Code: Select all
sent 3.02M bytes received 636 bytes 1.21M bytes/sec
total size is 27.51G speedup is 9,101.06
If that's what "rsync did," it's because that's what you told rsync to do.uthappam wrote:What the rsync command did was copy over a second complete directory tree.
Code: Select all
cp -R -u /home/albert /media/albert/"Expansion Drive"/albert/
Code: Select all
rsync -av /home/albert /media/albert/"Expansion Drive"/albert/
Code: Select all
rsync -av /home/albert "/media/albert/Expansion Drive"