Results 1 to 2 of 2

Thread: Automatic Conditional File Transfers

  1. #1
    Join Date
    Jun 2011
    Beans
    1

    Automatic Conditional File Transfers

    My first post, hope my question comes across clear... thanks in advance...

    I want to minimize the use of my usb external hdd by only using/transferring files to it when my internal hdd hits a predetermined free space size. The question: is there a program that will monitor 24/7 and move files/folders based on preset conditions?

  2. #2
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Automatic Conditional File Transfers

    Sure. *nix is good at this. Problem is, you'll need to do some research and figure out how to write a bash script and add it as a Cron Job.

    Now, I can't write this script for you (I don't know your exact configuration), but the following commands may be helpful:

    df - Gives the amount of free space available. See man df
    Bash's if-statement. See http://tldp.org/LDP/Bash-Beginners-G...ect_07_01.html

    cp -Copy files and folders.

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
  •