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 2010-06-02 00:57:01

Mvipond
New member
Registered: 2010-06-02
Posts: 2

issues with backup - pc wiki (rsync time machine)

Having trouble following the instructions on the wiki...

I feel like I have done everything correctly, checked numerous times, but I still get an error "the network path was not found"

This is my backup.bat file:
@ echo

Rem Keep Things Tidy; establish local variables
setlocal

Rem Establish name or IP Addr of DNS323
set DNS323Name=192.168.1.104

Rem Establish name of Backup folder on DNS323
set BackUpFolder=Backup_PC1

Rem Establish RSync User Name
set UserName=User1

Rem Establish RSync Name
set RSyncModuleName=PC1Backup

Rem Set Source Path
Rem Back up a single directory or drive by identifying the source path as /cygdrive/c or /cygdrive/c/Users/UserName/Documents
Rem The path = /cygdrive/c/Users/UserName/Documents looks a little odd. This is Cygwin convention for defining Windows paths from within a *nix emulator
set srcpath='/cygdrive/D/Silpada'

Rem Back up multiple directories by surrounding a list with single quotes (i.e., srcpath='/cygdrive/c/Users/UserName/Documents /cygdrive/c/Users/UserName/Contacts')
Rem set srcpath='/cygdrive/c/Users/UserName/Contacts /cygdrive/c/Users/UserName/Documents /cygdrive/c/Users/UserName/Favorites /cygdrive/c/Users/UserName/Pictures /cygdrive/c/Users/UserName/Videos /cygdrive/c/Users/UserName/Wav'

Rem <------------------------------------------------------------------------------------------>
Rem
Rem               No User Configuration Required Beyond This Point!
Rem
Rem <------------------------------------------------------------------------------------------>

Rem Establish DOS backup file path
set DOSBackUpPath=\\%DNS323Name%\mnt\HD_b2\%BackUpFolder%

Rem Establish Cygwin backup file path
set CygwinBackUpPath=//%DNS323Name%/mnt/HD_b2/%BackUpFolder%

Rem Using todays date establish name of backup directory
for /F "eol=; tokens=1,2,3,4* delims=/, " %%i in ('date/t') do set YYYYMMDD=%%k%%j%%i
for /F "eol=; tokens=1,2,3* delims=:, " %%i in ('time/t') do set HHMM=%%i%%j%%k
set BkpDir=%YYYYMMDD%_%HHMM%

REM Obtain date of last backup
Rem NOTE: The usebackq attribute is required; it specifies that the new semantics are in force, where a back quoted string is executed
Rem              as a command and a single quoted string is a literal string command and allows the use of double quotes to quote file names in filenameset.
for /F "usebackq tokens=*" %%i in ("%CygwinBackUpPath%/LastBkpDate.dat") do set LastBkpDir=%%i

Rem Establish rsync module name
set modulename=%UserName%@%DNS323Name%::%RSyncModuleName%/%BkpDir%

Rem Perform rsync backup
C:\Cygwin\bin\rsync.exe -arivx -z --link-dest=/%LastBkpDir% --password-file=c:\cygwin\etc\secret %srcpath% %modulename% >> %CygwinBackUpPath%/snapshot.log

Rem Save name of current backup directory; information is required next time batchfile runs
echo %BkpDir% > %DOSBackUpPath%\LastBkpDate.dat


Rem Delete shortcut to Previous Backup Directory
if exist %DOSBackUpPath%\Current.lnk C:\cygwin\bin\rm %CygwinBackUpPath%/current.lnk

Rem Change drive/directory and create shortcut to Current Backup Directory
C:\cygwin\bin\ln -s %BkpDir% %CygwinBackUpPath%/Current

Rem Clean up variables then exit
set DNS323Name=
set BackUpFolder=
set UserName=
set RSyncModuleName=
set DOSBackUpPath=
set CygwinBackUpPath=
set YYYYMMDD=
set HHMM=
set BkpDir=
set LastBkpDir=
set srcpath=
set modulename=

exit



I get:
C:\>for /F "usebackq tokens=*" %i in ("//192.168.1.104/Backup_PC1/LastBkpDate.da
t") do set LastBkpDir=%i
The system cannot find the file //192.168.1.104/Backup_PC1/LastBkpDate.dat.

and

C:\>C:\Cygwin\bin\rsync.exe -arivx -z --link-dest=/ --password-file=c:\cygwin\et
c\secret '/cygdrive/D/Silpada' User1@192.168.1.104::PC1Backup/0106Tue_0424PM  1>
>//192.168.1.104/Backup_PC1/snapshot.log
The network path was not found.

and

C:\>echo 0106Tue_0424PM  1>\\192.168.1.104\Backup_PC1\LastBkpDate.dat
The network path was not found.

I'm thinking the trouble lies with the way I'm calling the DNS-323...  I tried referring to it as dlink-(nicnumber) and that had the same result.

Any help would be greatly appreciated.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB