Results 1 to 8 of 8

Thread: Rsync empty backup folder

  1. #1
    Join Date
    Aug 2012
    Beans
    50

    Rsync empty backup folder

    Hey guys. I just installed rsync and want to start a backup. It look likes it works but the folder I'am backing up to is empty after the backup.


    This is the output I get after I start a backup.
    opening connection using: ssh tls-ams-ns-03 rsync --server -vvulogDtprze.iLsf --partial . /etc/bind/
    sending incremental file list
    delta-transmission enabled
    total: matches=0 hash_hits=0 false_alarms=0 data=0

    sent 29 bytes received 15 bytes 29.33 bytes/sec
    total size is 0 speedup is 0.00

    BAckup script(Backup.txt): sync -avhe ssh -varuzP /home/backups/ tls-ams-ns-02:/etc/bind/

    By the way I'am backing up via ssh which is set up without using a password every time a backup starts.

    Does anyone know why my backup folder is still empty?

    Thanks in advance.
    Last edited by MocroNL; October 2nd, 2012 at 08:26 AM. Reason: Extra info

  2. #2
    Join Date
    Aug 2012
    Beans
    50

    Re: Rsync empty backup folder

    Bump! Can noone answer my mysterious question?

  3. #3
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Rsync empty backup folder

    Hi MocroNL.

    My first guess would be that the remote user doesn't have access to /etc/bind.

    If that is not the case, I would try to do a full mirror (without the option -u).

    BTW, since rsync uses ssh by defualt you can shorten your command to something like this:
    Code:
    rsync -avhzP /home/backups/ tls-ams-ns-02:/etc/bind/
    Let us know how it goes.
    Regards.
    Last edited by papibe; October 30th, 2012 at 02:09 AM. Reason: spelling, sync -> rsync (thanks markbl)

  4. #4
    Join Date
    Jun 2006
    Location
    Brisbane Australia
    Beans
    713

    Re: Rsync empty backup folder

    Why are both of you writing "sync" in your command line? Surely that should be rsync?

  5. #5
    Join Date
    Aug 2012
    Beans
    50

    Re: Rsync empty backup folder

    Heey, thanks for the reply!

    I have tried: (rsync -avhzP /home/backups/ tls-ams-ns-02:/etc/bind/) But I got the same output. The rights of the map(bind) are 777 atm.

    root@TLS-AMS-ST-12:/home/backups# rsync -avhzP /home/backups/ tls-ams-ns-02:/etc/bind/
    sending incremental file list

    sent 26 bytes received 12 bytes 76.00 bytes/sec
    total size is 0 speedup is 0.00

    Greets.

  6. #6
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Rsync empty backup folder

    That may be a correct output is there's nothing new to transfer.

    Try forcing a change in a file, and then running rsync in order to see if it transfers it.

    Another alternatice: create an empty file:
    Code:
    touch /home/backups/dummy.txt
    Next time, rsync should transfer that file.

    Let us know how it goes.
    Regards.

  7. #7
    Join Date
    Aug 2012
    Beans
    50

    Re: Rsync empty backup folder

    Thank you papibe! It works and I now see what I did wrong.....

    rsync -avhzP (/home/backups/)= Send (tls-ams-ns-02:/etc/bind/)= Receive.

    I wanted to backup the /etc/bind into backups.

    So It should be like this?
    rsync -avhzP tls-ams-ns-02:/etc/bind/ /home/backups/

    Because I dont wanna make a script on every server that I'am going to backup...

    Many thanks!

  8. #8
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,790
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Rsync empty backup folder

    Glad your sort it out.

    Please mark this thread as SOLVED (read here), when you have the chance.

    Regards.

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
  •