DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-09-18 11:42:49

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

rsync backup (howto:backup) - not found

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

 

#2 2009-09-18 13:50:15

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 204
Website

Re: rsync backup (howto:backup) - not found

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.

Code:

#!/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

Bob Blackwell
Pickering, ON

Offline

 

#3 2009-09-18 14:36:55

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: rsync backup (howto:backup) - not found

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

 

#4 2009-09-18 19:48:51

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 204
Website

Re: rsync backup (howto:backup) - not found

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.


Bob Blackwell
Pickering, ON

Offline

 

#5 2010-01-27 05:08:02

lucidsystems
New member
Registered: 2010-01-27
Posts: 4

Re: rsync backup (howto:backup) - not found

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

 

#6 2010-01-27 08:22:34

sirmax
Member
Registered: 2010-01-26
Posts: 31

Re: rsync backup (howto:backup) - not found

check permissions on /mnt/HD_a2/

Offline

 

#7 2010-01-30 07:09:53

lucidsystems
New member
Registered: 2010-01-27
Posts: 4

Re: rsync backup (howto:backup) - not found

sirmax wrote:

check permissions on /mnt/HD_a2/

I agree. The user running the backup may not have write permission.

Offline

 

#8 2010-02-01 08:49:26

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: rsync backup (howto:backup) - not found

hi guys, rcblackwell was correct. the syntax was wrong and i must have been dyslexic during my typing.

cheers

Offline

 

#9 2010-02-02 15:09:39

max_mont
Member
Registered: 2010-01-24
Posts: 19

Re: rsync backup (howto:backup) - not found

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

 

#10 2010-02-03 00:13:39

lucidsystems
New member
Registered: 2010-01-27
Posts: 4

Re: rsync backup (howto:backup) - not found

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

 

#11 2010-02-03 02:23:52

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: rsync backup (howto:backup) - not found

@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

 

#12 2010-02-03 02:28:38

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: rsync backup (howto:backup) - not found

@lucid

i dont have dibian installed on this or on any 323 that i own or manage. so that lbackup wont work sad

Offline

 

#13 2010-02-03 11:23:06

lucidsystems
New member
Registered: 2010-01-27
Posts: 4

Re: rsync backup (howto:backup) - not found

fickle wrote:

@lucid
i dont have dibian installed on this or on any 323 that i own or manage. so that lbackup wont work sad

Which operating system are you running?

Have you visited the following URL : http://www.lbackup.org/source

smile

Offline

 

#14 2010-02-03 20:00:10

max_mont
Member
Registered: 2010-01-24
Posts: 19

Re: rsync backup (howto:backup) - not found

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

 

#15 2010-02-04 11:42:46

fickle
Member
From: Melbourne, Australia
Registered: 2007-09-10
Posts: 249

Re: rsync backup (howto:backup) - not found

@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

 

#16 2010-04-02 11:45:18

sulan
Member
Registered: 2010-04-02
Posts: 17

Re: rsync backup (howto:backup) - not found

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 wink

Last edited by sulan (2010-04-02 11:46:16)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB