Network Dropbox Script

Here's a script I cooked up for my home network. You may adapt it to yours as you like. All of my PCs are Ubuntu Intrepid Ibex.

#!/bin/bash
## Folder Dropbox script
## Written on the toilet by Mark LaCore
## 2008/11/01
##
## Sources and Destinations
##
SRC=/net/Dropbox/*
DST=/home/mark/Dropbox
##
## This bit will create a file notifying you of the sync's status.
##
rm $DST/in_sync
touch $DST/in_progress
rsync --delete $SRC $DST
rm $DST/in_progress
touch $DST/in_sync

My nfs mounts are in /net, and I have a folder in /home called Dropbox that this script rsyncs from my parent server into.

Your rating: None

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Use the special tag [adsense:format:slot] or [adsense:format:[group]:[channel][:slot]] or [adsense:block:location] to display Google AdSense ads.
  • Lines and paragraphs break automatically.
  • Insert Flickr images: [flickr-photo:id=230452326,size=s] or [flickr-photoset:id=72157594262419167,size=m].

More information about formatting options

CAPTCHA
are you sure you're not a robot?
         ____    _  __      _  __   __        
___ | __ ) | |/ / __| | \ \ / / __ _
/ __| | _ \ | ' / / _` | \ V / / _` |
| (__ | |_) | | . \ | (_| | | | | (_| |
\___| |____/ |_|\_\ \__,_| |_| \__,_|
Enter the code depicted in ASCII art style.