Results 1 to 2 of 2

Thread: rsync file tree emulation and soft links bash script

  1. #1
    Join Date
    Nov 2007
    Beans
    69

    rsync file tree emulation and soft links bash script

    Hello everybody,

    I come to you to see if I can get any idea on how to begin o do the next, and may be, developing it

    My idea is the next; I've got a encfs folder synced with Dropbox. I'd loke to create a folder insede it where there was the same tree as in home (except the folder itself). for instance:
    /home/user
    • Images
    • Documents
    • Desktop
    • Music
    • Video
    • Public
    • Dropbox


    And now the folder inside the Dropbox:

    /home/user/Dropbox/Encrypted
    • Images
    • Documents
    • Desktop
    • Music
    • Video
    • Public


    Now, what I'd like to do is that if I saved something in the ~/Dropbox/Encrypted , a link would automaticly be created to the real path of the home folder.

    My needs would then be two:
    1) A daemon that would check for any new folder created in the home tree that would create that folder in the Dropbox Encrypted tree.

    2) A daemon that would automaticly create links to the correspondent path everytime a file is written in the Dropbox Link.

    Thas anyone have a clue on how I should begin this?

  2. #2
    Join Date
    Nov 2007
    Beans
    69

    Re: rsync file tree emulation and soft links bash script

    I got a clue to create the tree:

    Code:
    rsync -av --exclude='Dropbox/' --include='*/' --exclude='*' /home/user/ . /home/user/Dropbox/BACKUPS_PC
    Not a daemon though, but nice to be the first step...

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
  •