What's new

Rsync

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

No answer ?

GH
 
You can install rsync through Optware.
 
Ok. Thanks. I will try.

Gh

Envoyé depuis mon SGH-I717D avec Tapatalk
 
I'd be very interested in this!

Please let us know how it works. I'd be very greatful if you'd post a quick guide on how to do this, if you manage :)
 
I'd be very interested in this!

Please let us know how it works. I'd be very greatful if you'd post a quick guide on how to do this, if you manage :)
In fact I installed Rsync from Entware. Now the challenge is to set it up in order to automatically either backup my NAS (MyBookLive) to the N66U usb drive, either the inverse.

In Merlin's wiki, there is 2 tutorials about installing either Optware or Entware:
https://github.com/RMerl/asuswrt-merlin/wiki

If you go with Entware (I did it), you will probably have to use informations from both tutorials. Tell me if you have a problem.

Going back to the backup process, there is another thread, with inputs from TeHashX, about that function: Direct copy from N66U(USB) to NAS
It's on the backburner for the moment because I just setup OpenVPN, based on information from Tomato and from OpenVPN.net and before forgetting I have to prepare a tutorial that will be stored in Merlin's Wiki when done: https://github.com/RMerl/asuswrt-merlin/wiki

GH
 
In fact I installed Rsync from Entware. Now the challenge is to set it up in order to automatically either backup my NAS (MyBookLive) to the N66U usb drive, either the inverse.

In Merlin's wiki, there is 2 tutorials about installing either Optware or Entware:
https://github.com/RMerl/asuswrt-merlin/wiki

If you go with Entware (I did it), you will probably have to use informations from both tutorials. Tell me if you have a problem.

Going back to the backup process, there is another thread, with inputs from TeHashX, about that function: Direct copy from N66U(USB) to NAS

GH
http://forums.smallnetbuilder.com/showpost.php?p=61104&postcount=17 by TeHashX
 
I installed rsync on rt-n66u and experiencing strange behaviour. I have NTFS formatted usb drive and want to do daily "incremental" backups utilizing hardlinks to save disk space.

I've created the script below and it works when I run it manually - it properly creates next folder and hardlinking the file which didn't change. However when I schedule it through cron then:

- first day it creates a full backup (see below)
- second day it creates all the files with 0 size and time of the backup (see below) and not as hardlink
- third day - as it compares it to the second day backup it creates full backup again (size and date doesn't match)

Any idea why it works when run manually and not through cron?

Thanks
Radek

#!/bin/sh

TODAY=`date -I`
YESTERDAY=`date -I -d "@$(($(date +%s) - 86400))"`

SRC="/mnt/Elements/Comp-Pracovna/"
TRG="/mnt/Elements/Backup/Comp-Pracovna/$TODAY"
LNK="/mnt/Elements/Backup/Comp-Pracovna/$YESTERDAY"
LOGF="/mnt/Elements/Backup/LOGS/RSYNC/$TODAY-pracovna.log"

OPT="-avh --delete --log-file=$LOGF --link-dest=$LNK"

rsync $OPT $SRC $TRG



FROM First Day (FULL)
admin@RT-N66U:/tmp/mnt/Elements/Backup/Comp-Pracovna/2013-02-21/Verca# ls -la
-rwxrwxrwx 1 admin root 23197 Nov 17 2010 Haba.jpg
-rwxrwxrwx 1 admin root 1642737 Sep 9 2007 Haba_pozadi.jpg
-rwxrwxrwx 1 admin root 6656 Aug 29 2011 Thumbs.db
-rwxrwxrwx 1 admin root 78 Aug 13 2009 desktop.ini
-rwxrwxrwx 1 admin root 1258 Feb 18 22:11 sync.ffs_db

FROM Second day
admin@RT-N66U:/tmp/mnt/Elements/Backup/Comp-Pracovna/2013-02-22/Verca# ls -la
-r-xr-xr-x 1 admin root 0 Feb 22 02:00 Haba.jpg
-r-xr-xr-x 1 admin root 0 Feb 22 02:00 Haba_pozadi.jpg
-r-xr-xr-x 1 admin root 0 Feb 22 02:00 Thumbs.db
-r-xr-xr-x 1 admin root 0 Feb 22 02:00 desktop.ini
-r-xr-xr-x 1 admin root 0 Feb 22 02:00 sync.ffs_db
 
Now the challenge is to set it up in order to automatically either backup my NAS (MyBookLive) to the N66U usb drive, either the inverse.
GH
BTW, I've ported tvheadend to RT-N66U and to MBL! I'm using it as a video recorder for IPTV. Tvheadend updates TV program automatically and records TV programs form EPG by keywords to MKV files. It gives human friendly filenames to records and put it to UPNP/DLNA folders after then. All you need is to take a TV remote at evening, the rest job is already done by tvheadend:)
 
Last edited:

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top