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 2008-07-01 05:07:58

unmesh
Member
Registered: 2008-03-26
Posts: 55

Rsync Time Machine does not update symbolic link

I've installed the software and scripts (fonz' fun plug 0.5 based) and it seems to be doing the right thing except that the "current" symbolic link won't update automatically to the latest directly. Here is the directory listing from the backup target.

# ls -l
drwxr-xr-x    3 root     root         4096 Jun 27 16:47 20080627_164744
drwxr-xr-x    3 root     root         4096 Jun 29 06:48 20080629_064801
drwxr-xr-x    3 root     root         4096 Jun 30 02:00 20080630_020010
lrwxrwxrwx    1 root     root           15 Jun 29 06:50 current -> 20080629_064801

Any ideas as to why this might be happening will be greatly appreciated.

Thanks.


DNS-323 FW1.10B7 WD20EARS_2TB Samsung_HD753LG_750G FFP_0.5
DNS-321 FW1.03  FFP_0.7 (Spare enclosure)
DNS-320 FW2.02 Hitachi_HDS5C3020ALA632_2TB Hitachi_HDS721010KLA330_1TB FFP_0.5

Offline

 

#2 2008-07-01 14:34:14

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

Re: Rsync Time Machine does not update symbolic link

unmesh wrote:

I've installed the software and scripts (fonz' fun plug 0.5 based) and it seems to be doing the right thing except that the "current" symbolic link won't update automatically to the latest directly.

I had a similar problem until adding the full path to wc in the IF statement at the end of the script.

The If statement in my script looks as follows;

Code:

if [ $(ls -1A $dstpath/$date | $ffppath/bin/wc -l) -ne 0 ]
then
  rm $dstpath/current
  ln -s $date $dstpath/current
fi

The path ($ffppath) is set ealier in the script with

Code:

ffppath=/ffp

Bob Blackwell
Pickering, ON


Bob Blackwell
Pickering, ON

Offline

 

#3 2008-07-03 18:15:48

unmesh
Member
Registered: 2008-03-26
Posts: 55

Re: Rsync Time Machine does not update symbolic link

Worked like a charm!

Thanks.


DNS-323 FW1.10B7 WD20EARS_2TB Samsung_HD753LG_750G FFP_0.5
DNS-321 FW1.03  FFP_0.7 (Spare enclosure)
DNS-320 FW2.02 Hitachi_HDS5C3020ALA632_2TB Hitachi_HDS721010KLA330_1TB FFP_0.5

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB