Results 1 to 6 of 6

Thread: rsync woes

  1. #1
    Join Date
    May 2008
    Beans
    77

    [SOLVED] rsync woes

    I am trying to do a simple backup of my home directory into my backup directory on my desktop. Im on my laptop running xubuntu intrepid. Rsync will not exclude hidden files no matter what I type. The command I am using is:
    Code:
    rsync -av --progress --exclude=¨.*/¨ --exclude=¨.*¨ <my source dir> user@mydesktop::backup/dest
    No hidden files or directories are excluded. I have tried multiple different combinations of the exclude directive to no avail. Any suggestions?
    Last edited by nunki; March 16th, 2009 at 08:26 PM.

  2. #2
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: rsync woes

    If I recall rightly, the exact syntax should be

    Code:
    --exclude="- *."
    and you should be able to remove

    Code:
    --exclude=¨.*/¨ --exclude=¨.*¨
    hope that works, and remember to test before deploying!

  3. #3
    Join Date
    May 2008
    Beans
    77

    Re: rsync woes

    Quote Originally Posted by jonobr View Post
    If I recall rightly, the exact syntax should be

    Code:
    --exclude="- *."
    and you should be able to remove

    Code:
    --exclude=¨.*/¨ --exclude=¨.*¨
    hope that works, and remember to test before deploying!
    Thanks, that seems to have done the trick. Syntax is a bit non-intuitive, but it works.

  4. #4
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: rsync woes

    agreed,

    good to hear its running!

  5. #5
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,059
    Distro
    Ubuntu Development Release

    Re: rsync woes

    You might want to give gadmin-rsync a go. It's in the repos.

  6. #6
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: rsync woes

    philinux

    if that name is a play on the name of the lead singer of thin lizzy and you are a fan , that's hilarious,
    If not , then its still amusing to me............


    I need to lie down now...........



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
  •