I've transferred my files (just text files, jpegs, movies) from my old windows pc to my just-purchased stand-alone Linux laptop (s/h Dell Linux Mint 17.1). To back up these files to usb, the Backup Tool has two problems:
- (1) the Tool doesn't remove files from the usb that I've removed from the laptop, which means going through the usb to delete them,
- (2) the Tool needs to be set up each time I want to make a backup, which is annoying.
I'm only a couple of weeks into understanding Linux. I've written the following script, quickly run from Terminal:
#!/bin/bash rsync -arh --quiet --delete ~/ /media/my-laptop/my-usb
I suspect something is wrong with this. All seems to work more or less okay (i.e. the usb after each run of the script has an exact copy of what's on the hard disk), but (using ctrl h) I see that the hidden files are being copied as well, and generating a lot of error messages in the process such as:
rsync : mkstemp “media/my-pc/my-usm/.local/share/Trash/files/. …...” failed : Invalid argument (22). rsync : symlink “media/my-pc/my-usm/.local/share/Trash/files/….” → “….” failed : Operation not permitted (1).
Will a simple amendment to my 2-line #! script above allow me to back up my files, and just my files, without the hidden files and associated error messages?