Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question Backing up with cp - files are missed

    I have an external hard drive mounted at ~/video, which holds videos as well as backups of the internal drive. I've copied everything to it and then have been using this to update the backup:
    sudo cp --preserve=all --update --recursive --verbose ~/*?[!video] ~/video/.backup/home/hyperhacker/
    For some reason this is not copying all updated files.

    I'd like to switch to backing things up to a compressed archive, as well. What format would be good for this? 7zip doesn't preserve some attributes from the filesystem, and if I use a .tar.gz I'd have to recompress the entire .tar every time.

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    rsync is intended for smart copy.

Posting Permissions

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