Results 1 to 12 of 12

Thread: auto backup to external disk N7700 philhu?

  1. #1
    Registered+
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked
    0 times in 0 posts

    auto backup to external disk N7700 philhu?

    Hi guys - hopefully philhu will read..

    i have read about auto backups for the n7700/5200 i wonder if anyone has any ideas..

    my problem is this - i generate apx 100GB/Hour and this is being written to the raid array on my n7700.

    i also need to get this to be written onto the external 1.5TB esata drive, at the moment i am transferring with command line in an ssh client. at the end of the day it takes about 2-2.5 hours to transfer all the data which is a pain.

    is there a way that i can get the thecus/ a module to automatically write to both to save on network bandwidth? like an automated backup script i could run to check for any new/file changes and backup to the esata?

    i have heard mentions of Rsync?

    any help - much appreciated.

    John

  2. #2
    Senior Member
    Join Date
    Jun 2007
    Location
    Austra
    Posts
    453
    Thanks
    0
    Thanked
    14 times in 14 posts

    Re: auto backup to external disk N7700 philhu?

    You can use rsync or simple the copy command, where You set the option only to copy newer or not existing files ( thats the option -u).
    From the manual page:
    -u, --update
    copy only when the SOURCE file is newer than the destination file or when the destination file is missing
    Then create a cron job for that and thats it.
    See here a link to the thecus wiki about tweaks for the N5200 about cron jobs:
    http://onbeat.dk/thecus/index.php/N5200_Tweaks
    assuming the N7700 has the same workaround.
    br
    Peter

  3. #3
    Registered+
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: auto backup to external disk N7700 philhu?

    i have already tried the update command and it just replies with

    cp -u /raid0/data/btcc/day1 /raid0/data/usbhdd/esata/sdh1

    'omitting /raid0/data/btcc/day1'

    or something to that effect, and doesnt update.

    am i making a fundemental error here!? i have made two folders, one file is the same in both and the other is only in the source folder.

  4. #4
    Senior Member
    Join Date
    Jun 2007
    Location
    Austra
    Posts
    453
    Thanks
    0
    Thanked
    14 times in 14 posts

    Re: auto backup to external disk N7700 philhu?

    Please try cp -Ru
    br
    Peter

  5. #5
    Registered+
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: auto backup to external disk N7700 philhu?

    i tried cp -uR maybe this could be it!

    will see how it goes on site tomorrow.

    regards.

    john

  6. #6
    Member
    Join Date
    Jan 2009
    Posts
    137
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: auto backup to external disk N7700 philhu?

    I posted my script that run using rsunc nightly

    It is currently writing to a usb disk, but the concept is the same

    It uses rsync to make a copy onto the usb disks.

    Look for all my posts, you'll see the script.

    What I did was add the script to the cron job run by the system every night.

    One post is the script, and in another thread are basic setup instructions.

    Hope this helps

  7. #7
    Registered+
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: auto backup to external disk N7700 philhu?

    righto, its now working, i am using cp -uv to also give me a confirmation of whats been moved.

    the trick was adding /* at the end of the source.

  8. #8
    Registered+
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: auto backup to external disk N7700 philhu?

    rightio! well i have learnt a lot now and have decided that i may aswell just use the command each time

    but being me i want to get a script to work too - just so i can.

    so i have taken some advice and have also looked at philhu's script for usb copy..

    and i have come up with

    #!/bin/bash

    echo 'hello currie'

    wow tricky you say!

    i made this in notepad and saved it as a txt file. ANSI encoding

    i then put it in a network drive, chmod to 755, renamed it to currie.sh to make it more obvious and tried to run it with ./currie.sh

    and it replies with : bad interpereter : no such file or directory.

    from there i read that depending how the drive is mounted it may not be able to see the bin/bash so i created a new folder /currie and moved it into there

    so its /currie/currie.sh -to prove

    /currie ls -l

    Code:
    root@127.0.0.1:/# ls -l /currie
    -rwxr-xr-x    1 root     root           35 Apr 18 16:18 currie.sh*
    root@127.0.0.1:/#
    so its all good but still

    Code:
    root@127.0.0.1:/# cd /currie
    root@127.0.0.1:/currie# ./currie.sh
    : bad interpreter: No such file or directory
    any ideas?

  9. #9
    Senior Member
    Join Date
    Jun 2007
    Location
    Austra
    Posts
    453
    Thanks
    0
    Thanked
    14 times in 14 posts

    Re: auto backup to external disk N7700 philhu?

    You can't create linux scripts with notepad - windows uses another style of line termination as it is required from linux based OS.
    If You want to edit it on a Windows PC, then get i.e notepad++
    or learn how to use vi - thats the standard linux editor.
    br
    Peter

  10. #10
    Registered+
    Join Date
    Apr 2009
    Posts
    23
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: auto backup to external disk N7700 philhu?

    right, i have made my little script in vi and hapily run it a few times..

    but i have to make it easy to use for the others who will need to run it so moved it to /

    on restart its gone, is there any way i can make a folder - say /currie and not have it removed on startup?

  11. #11
    Senior Member
    Join Date
    Jun 2007
    Location
    Austra
    Posts
    453
    Thanks
    0
    Thanked
    14 times in 14 posts

    Re: auto backup to external disk N7700 philhu?

    All the data on the writeable flash are removed with some exceptions, but with the help of the META module You can copy it on every restart wherever You want.
    So simply install the META module (added : the module version for the N5200) and write a small script in the startup section of the module, which copies Your file on the place You want.
    br
    Peter

  12. #12
    Member
    Join Date
    Jan 2009
    Posts
    137
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: auto backup to external disk N7700 philhu?

    I placed mine in the module directory, created a directory in there named USBCOPY and put my stuff there. Nothing touches it

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cannot import external Disk Win XP
    By ikonia in forum Software
    Replies: 12
    Last Post: 18-12-2004, 10:40 AM
  2. Iomega 160gb external Hard disk - £94.99 inc vat
    By derthballs in forum Retail Therapy and Bargains
    Replies: 2
    Last Post: 30-09-2004, 12:11 PM
  3. Backup across 100mbit cat5 network to USB external HDD
    By Merlin in forum Networking and Broadband
    Replies: 3
    Last Post: 26-05-2004, 09:33 AM
  4. External Disk Roundup
    By Rys in forum HEXUS Reviews
    Replies: 8
    Last Post: 28-04-2004, 12:10 PM
  5. External hard disk enclosures
    By sparky191 in forum PC Hardware and Components
    Replies: 0
    Last Post: 25-01-2004, 11:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •