Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I setup fun_plug on my DNS-323 per;
hxxp://nas-tweaks.net/40/installation-of-the-fonz-funplug-0-5-for-ch3snas-ch3mnas-dns-323-and-many-more/
and
hxxp://dns323.kood.org/howto:backup
It currently working and will take about 27 hours to finish. It seems to be going at .25 GB/min and I have 406 GB to transfer. I did a disk properties to see the amount used, waited a minute and did it again to get the approx. transfer rate.
Basically I have three 2TB hard drives. Just got them. What I had before was two 500GB hard drives. What I use to do is every time I downloaded pictures or movies I did it to both hard drives so I had a backup. Now I'm going to do it correctly with three backups and keep one drive at my dad's house.
My current schedule command line looks like;
45 0 * * * /mnt/HD_a2/fun_plug.d/bin/rsync -rlptDv --delete /mnt/HD_a2 /mnt/HD_b2 >/mnt/HD_a2/fun_plug.d/log/rsync.last.log 2>&1
It started at 12:45AM and I have a long wait until it's done. I'm sure I'll have to start over, the problem is that it is copying everything into HD_a2 on Volume_2, I'd rather not have this directory created, I want both drives to look the same.
1. If I have a directory called "data" on Volume_1. What would the above command line look like just to copy/update "data" on Volume_2 (and not under any additional directories)?
2. Also do I need to use the -u option in rsync to avoid overwriting existing files the next time around?
I'm new to linux and rsync but I am slowly learning. Took me all day just to get this far.
Offline
ottsm wrote:
My current schedule command line looks like;
45 0 * * * /mnt/HD_a2/fun_plug.d/bin/rsync -rlptDv --delete /mnt/HD_a2 /mnt/HD_b2 >/mnt/HD_a2/fun_plug.d/log/rsync.last.log 2>&1
I suggest that you use -av --stat instead of -rlptDv. -a (archive) is shorthand for -rlptgoD. You are, currently, missing the g and o options, which preserve group and ownership information when making the backup. --stat adds some info at the end of the log, about how much data was backed-up and how much data was actually copied. Can come in handy.
Your cron job should, then, look like this:
45 0 * * * /mnt/HD_a2/fun_plug.d/bin/rsync -av --stats --delete /mnt/HD_a2 /mnt/HD_b2 >/mnt/HD_a2/fun_plug.d/log/rsync.last.log 2>&1
ottsm wrote:
1. If I have a directory called "data" on Volume_1. What would the above command line look like just to copy/update "data" on Volume_2 (and not under any additional directories)?
Easy. The source path should be /mnt/HD_a2/data instead of /mnt/HD_a2
ottsm wrote:
2. Also do I need to use the -u option in rsync to avoid overwriting existing files the next time around?
You, currently, set-up rsync to copy, on a schedule, a content of one directoy (source) to another (destination) so that rsync will mirror the content of the source to destination. That means it will deleting (--delete) files that no longer exist in source, replace/overwrite files that are different and copy over new files.
If you add -u, rsync will not replace/overwrite files which are newer in destination. Now it's up to you and how you use the files in the back. If you use it as a pure backup, then no, you don't need to use it, since you won't change those files anyway. It will have no effect.
The full rsync manual is here: http://www.samba.org/ftp/rsync/rsync.html
It might be a bit overwhelming, but you can start by reading the usage section, and the specific options you're considering. It's well written, imho.
Offline
Thanks and Merry Christmas,
Just one more thing is confusing me, I don't want my files that I copy for volume_1 placed in volume_2/HD_a2. I just want them placed in volume_2, in other words make volume_1 & volume_2 identical.
Once the task is in operation, what is the best way to kill/stop the task (I know I can reboot the machine, but that could cause problems and perhaps a better solution exists).
Offline
ottsm wrote:
Thanks and Merry Christmas,
You're welcome, and a happy Hanuka to you (it was, actually, over a week ago).
ottsm wrote:
Just one more thing is confusing me, I don't want my files that I copy for volume_1 placed in volume_2/HD_a2. I just want them placed in volume_2, in other words make volume_1 & volume_2 identical.
Easy. You need to add a slash ('/') to the end of the source directory. That tells rsync to just copy its content instead of copying the directory with all it's content. You cron job should look like this:
45 0 * * * /mnt/HD_a2/fun_plug.d/bin/rsync -av --stats --delete /mnt/HD_a2/ /mnt/HD_b2 >/mnt/HD_a2/fun_plug.d/log/rsync.last.log 2>&1
It's in the usage section I suggested you should read in my previous post.
ottsm wrote:
Once the task is in operation, what is the best way to kill/stop the task (I know I can reboot the machine, but that could cause problems and perhaps a better solution exists).
Not sure why you'd like to do that. You can issue this command from the command prompt:
kill -SIGTERM`pidof rsync`
It might take a bit for it to stop. If it doesn't - try this more aggressive approach:
kill -SIGKILL`pidof rsync`
Offline
Thanks again.
I need to kill the job because it's taking longer then what I thought. First I tried using the "Schedule Download" built into the DNS-323, I thought it worked great, then I realized it didn't copy the time&date of the file, it made it the copy time. It took this process about 13 hours. I can see that rsync is going to take much longer, not sure why? I have it set for every 24 hours, but for this first time it's going to take longer and another rsync may startup at the same time the other is running.
Offline
If you want to get fancy, you can add a query to see if rsync is running before starting a new instance. If you have more than 1 rsync script, you can use flag files to determine if the script is running or not. Yes, lilkely it will only be necessary on the first pass as the incremental changes in thoery are a lot less.
Rsync wasn't designed to be fast, it just builds on top of existing functions.
Instead or rsync, you can use the cp command to create your initial backup copy as it does run faster.
Offline
Hi newbie here, long time windows user and now after having my 323 for a while have installed ffp 5.
My question is what would the cp command look like to copy Volume_1 to Volume_2 completed before
setting up the rsync for nightly incremental backups.
Cheers
Offline
mcs88 wrote:
Hi newbie here, long time windows user and now after having my 323 for a while have installed ffp 5.
My question is what would the cp command look like to copy Volume_1 to Volume_2 completed before
setting up the rsync for nightly incremental backups.
Cheers
It should look something similar to this:
cp -a /mnt/HD_a2/* /mnt/HD_b2
Offline