Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
hi all,
i decided to see how my automated backup was doing and then i found out it wasn't even doing anything at all
i decided to manually try it but received the following
/ffp/bin/sh: 1: not found
/ # rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32)
rsync: connection unexpectedly closed (35 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=
3.0.5]
after the above message, i get a lot of .. file not found errors
this is my rsync syntax (as per the howto in the wiki
/ # rsync -rlptDv --delete /mnt/HD_b2 /mnt/HD_a2/ >/mnt/HD_a2/ffp/log/rsync.last.log 2&1
which is from crontab -l
crontab -l
/ # crontab -l
32 2 * * * /usr/sbin/rtc -s
30 2 2 * * /usr/sbin/rtc -c
59 1 * * * /usr/sbin/daylight &
5 2 * * * /mnt/HD_a2/ffp/bin/rsync -rlptDv --delete /mnt/HD_b2 /mnt/HD_a2 >/mnt/HD_a2/ffp/log/rsync.last.log 2>&1
can anyone advise how to rectify this?
cheers
Last edited by fickle (2009-09-18 12:03:06)
Offline
fickle wrote:
hi all,
i decided to see how my automated backup was doing and then i found out it wasn't even doing anything at all
i decided to manually try it but received the following
/ffp/bin/sh: 1: not found
/ # rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32)
rsync: connection unexpectedly closed (35 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=
3.0.5]
after the above message, i get a lot of .. file not found errors
this is my rsync syntax (as per the howto in the wiki
/ # rsync -rlptDv --delete /mnt/HD_b2 /mnt/HD_a2/ >/mnt/HD_a2/ffp/log/rsync.last.log 2&1
which is from crontab -l
crontab -l
/ # crontab -l
32 2 * * * /usr/sbin/rtc -s
30 2 2 * * /usr/sbin/rtc -c
59 1 * * * /usr/sbin/daylight &
5 2 * * * /mnt/HD_a2/ffp/bin/rsync -rlptDv --delete /mnt/HD_b2 /mnt/HD_a2 >/mnt/HD_a2/ffp/log/rsync.last.log 2>&1
can anyone advise how to rectify this?
cheers
I think the problem is caused by calling rsync from a cron job. Try creating a script then calling the script from cron.
#!/bin/sh /mnt/HD_a2/ffp/bin/rsync -rlptDv --delete /mnt/HD_b2 /mnt/HD_a2 >/mnt/HD_a2/ffp/log/rsync.last.log 2>&1
Offline
odd thing is that its directly from the wiki. i have a similar script (also from the wiki) on my own 323. the one with the issue is just one i look after for a friend of mine. so i know crontab works fine.. just not on this specific 323
oh, for additional info i guess
firmware 1.07
ffp = latest (though i dont know how to actually find out the version) but ffp was installed one month ago at best
and as i said previously, i tried doing a manual rsync (not within cron, but same syntax as the cron) .. and i got that error mentioned above (and again below)
/ffp/bin/sh: 1: not found
/ # rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32)
rsync: connection unexpectedly closed (35 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=
3.0.5]
using this rsync syntax
/ # rsync -rlptDv --delete /mnt/HD_b2 /mnt/HD_a2/ >/mnt/HD_a2/ffp/log/rsync.last.log 2&1
cheers
Offline
fickle wrote:
odd thing is that its directly from the wiki. i have a similar script (also from the wiki) on my own 323.
using this rsync syntax
/ # rsync -rlptDv --delete /mnt/HD_b2 /mnt/HD_a2/ >/mnt/HD_a2/ffp/log/rsync.last.log 2&1
Sorry, not enough coffee before reading your previous post!
With exception of paths the Wiki script differs from your command line entry. The wiki script ends with an 2>&1 not 2&1. I think this explains the error when run manually.
Offline
You may want to take a look at LBackup : http://www.lbackup.org
If enabled within the configuration, you will receive an email after each backup attempt.
Offline
check permissions on /mnt/HD_a2/
Offline
sirmax wrote:
check permissions on /mnt/HD_a2/
I agree. The user running the backup may not have write permission.
Offline
hi guys, rcblackwell was correct. the syntax was wrong and i must have been dyslexic during my typing.
cheers
Offline
Hi all,
I 'm reading this topic and I don't see the purpose of backuping one hard drive on the other one.
Because, DNS 323 firmware already manages RAID 1 feature.
could you explain me, please ?
Many thanks in advance.
Offline
max_mont wrote:
I 'm reading this topic and I don't see the purpose of backuping one hard drive on the other one. Because, DNS 323 firmware already manages RAID 1 feature.
RAID != Backup.
RAID is redundancy. If a drive fails then the other drive will take over.
If you delete a file if the server is stolen that is the reason for a backup.
Further details regarding backup are available from :
http://en.wikipedia.org/wiki/Backup
I hope this helps to clarify the situation.
Offline
@max
also, if you create a raid 1 array, .. and say you run out of space and put in a new HD (which is larger than the other one already inside), the raid 1 array will only use the same amount of space of the smallest device.
ergo,
bay 1 = 500gb HD
bay 2 = 700gb HD
raid 1 array = 500gb
so you "wont" be backing up the missing 200gb's not listed on the array and the remaining space (that 200 gb) will be used as Jbod .. which IMHO, is not a good idea at all
HTH
Offline
@lucid
i dont have dibian installed on this or on any 323 that i own or manage. so that lbackup wont work
Offline
fickle wrote:
@lucid
i dont have dibian installed on this or on any 323 that i own or manage. so that lbackup wont work
Which operating system are you running?
Have you visited the following URL : http://www.lbackup.org/source
Offline
RAID != Backup
I agree with that.
I plan to keep RAID 1 feature and use 2 external HD on USB port.
each night, I will synchronize internal HD with external HD.
each month, I will store a tgz archive on the other external HD.
What is your mind about my idea ?
Offline
@lucide
i run nothing but xp / vista on all my machines (there is a win2k3 server as well) .. im trying to avoid the dependency of any of these machines to be on for any reason for a backup. figured the 323 should be self contained for any backups (other than an occasional HD replacement)
Offline
I had the same problem with FW 1.08. It turned out that HD_b2 wasn't mounted so I had to do that manually. I just entered the following line at the end of the rc script (/ffp/etc/rc) to make sure the drive is mounted on system start up:
mount -w /dev/sdb2 /mnt/HD_b2
-w makes sure that we mount the secondary harddrive for both read & write access.
After this everything worked like a charm
Last edited by sulan (2010-04-02 11:46:16)
Offline