Results 1 to 3 of 3

Thread: Encrypt files with gpg, missing files ...

  1. #1
    Join Date
    Oct 2006
    Beans
    Hidden!

    Encrypt files with gpg, missing files ...

    Hi, I have this system to backup my data:

    /home/user/documents <-- My Documents to backup

    /home/user/backup <-- Here Documents to encrypt to rsync to a remote server

    1.- Sync:

    $ rsync -avu /home/user/documents /home/user/backup

    2.- Encrypt and delete original files to the 3.- step:

    find /home/user/backup/* ! -iname '.gpg' -type f -exec gpg -e --batch --yes --recipient "My key User" '{}' \; -exec rm -f '{}' \;

    to encrypt all my dir documents (with subdirs)

    The problem is:

    $ find /home/user/documents/ | wc -l
    2952

    $ find /home/user/backup/ | wc -l
    2930

    2952 - 2930 = 22 missing files on the backuped files

    I know, empty files dont be encrypted but:

    $ find /home/user/documents/ -empty | wc -l
    6

    And /home/user/documents dont have any *.gpg file


    Any idea about this?

    Thx
    Juanjo A.

  2. #2
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 14.10 Utopic Unicorn

    Re: Encrypt files with gpg, missing files ...

    Are you sure the directory isn't called /home/user/Documents ?

  3. #3
    Join Date
    Oct 2006
    Beans
    Hidden!

    [SOLVED]Re: Encrypt files with gpg, missing files ...

    Sorry, the problem was the step 1-

    The firs rsync not run propoerly, and this cause the missing files to the next steps.

    Thx
    Juanjo A.

Tags for this Thread

Bookmarks

Posting Permissions

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