Backup DS408 -> Windows Vista

Discuss backup and restore functions of the DiskStation with respect other DiskStations, USB/eSATA, Amazon S3, network backup, or other rsync clients.

Backup DS408 -> Windows Vista

Postby Manta99 » Tue Apr 07, 2009 7:42 pm

I'm currently having some difficulties getting a working incremental backup from the DS to a Windows Vista machine. I followed these steps so far:


The first automatic (full) backup went withouth any problems, but the incremental backups keep failing.

This is the rsyncd.conf I'm currently using:
Code: Select all
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
[backupCUBE]
path = /cygdrive/d/RecoverCube/Data
read only = true
transfer logging = no

Rsync gives me the following errors:
Code: Select all
2009/04/07 20:37:36 [4204] connect from CUBE (192.168.0.198)
2009/04/07 20:38:03 [4564] connect from CUBE (192.168.0.198)
2009/04/07 20:38:03 [4564] rsync to backupCUBE/Cube_001132022F30/ from cube (192.168.0.198)
2009/04/07 20:38:03 [4564] ERROR: module is read only
2009/04/07 20:38:03 [4564] rsync error: syntax or usage error (code 1) at main.c(866) [receiver=3.0.5]


If I change in rsyncd.conf the read only flag, the backup continues but gives me more errors later on:
Code: Select all
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
[backupCUBE]
path = /cygdrive/d/RecoverCube/Data
read only = false
transfer logging = no

Code: Select all
2009/04/07 20:29:43 [5636] connect from CUBE (192.168.0.198)
2009/04/07 20:29:43 [5636] rsync: read error: Software caused connection abort (113)
2009/04/07 20:29:43 [5636] rsync error: error in rsync protocol data stream (code 12) at io.c(759) [receiver=3.0.5]
2009/04/07 20:30:09 [7952] rsync: rename "/Cube_001132022F30/Photo/100NCD70/@eaDir/DSC_0252.JPG/.SYNOPHOTO:THUMB_B.jpg.NK34h6" (in backupCUBE) -> "Photo/100NCD70/@eaDir/DSC_0252.JPG/SYNOPHOTO:THUMB_B.jpg": Invalid argument (22)


Anyone can help me out here? Is the read-only option not supported? According to the information I've found I would think this option should be set to true (one way backup):

read only :The "read only" option determines whether clients will be able to upload files or not. If "read only" is true then any attempted uploads will fail. If "read only" is false then uploads will be possible if file permissions on the server allow them. The default is for all modules to be read only.


I've been trying to get this to work for a week now, so any insights would be appreciated! :o
Manta99
I'm New!
I'm New!
 
Posts: 8
Joined: Wed Jun 25, 2008 6:18 pm

Re: Backup DS408 -> Windows Vista

Postby Manta99 » Sun Apr 12, 2009 6:08 am

Can anyone help :?:
Manta99
I'm New!
I'm New!
 
Posts: 8
Joined: Wed Jun 25, 2008 6:18 pm

Re: Backup DS408 -> Windows Vista

Postby laurentauthier » Mon Jun 14, 2010 8:51 pm

I have the same problem. Can anyone can explain the problem and is there a solution?
laurentauthier
I'm New!
I'm New!
 
Posts: 5
Joined: Mon Jun 14, 2010 8:47 pm

Re: Backup DS408 -> Windows Vista

Postby HarryPotter » Tue Jun 15, 2010 11:42 am

It is a long time since I used rsync to backup from a DS to a Win2k PC. Dont know if this is the problem but in the above rsync.conf the user authentification is missing:

Code: Select all
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid

# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[backup_win2k]
path = /cygdrive/e
read only = false
transfer logging = yes
auth users = windowsusername
secrets file = /cygdrive/c/programme/cwRsyncServer/rsyncd.secrets


content of rsyncd.secrets:

Code: Select all
windowsusername:windowsuserpassword
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS712+ / DSM 4.2 3211 / 2 x HD204UI (RAID0) / LMS 7.7.2-007
DS110+ / DSM 4.2 3211 / HD154UI
DS408 / DSM 4.0 2228 / 3 x ST31000340AS (RAID0) + 1 x HDS721010KLA330
DS207+ / DSM 3.1.1636 / ST31000340AS + WD5000KS
DS-106x / DSM 4.0 2228 (from DS108j) /

2 Squeezebox 3 + Boom
Rapsody N35

APC Smart UPS SUA750i
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
 
Posts: 12320
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Backup DS408 -> Windows Vista

Postby laurentauthier » Tue Jun 15, 2010 2:22 pm

my rsync program is embeded in DeltaCopy program and running on windows.

Obviously, this type of file belong to Photo Station (even if I don't choose this application for the backup)

Is it because ":" character is not a valid file name character on windows?

The other files (my photos) are saved correctly.

Does anyone have the same problem?
laurentauthier
I'm New!
I'm New!
 
Posts: 5
Joined: Mon Jun 14, 2010 8:47 pm

Re: Backup DS408 -> Windows Vista

Postby laurentauthier » Sun Mar 20, 2011 9:14 pm

There is an issue using DSM 3.1 and before:
- I have Photo Station activated on my NAS
- I make backup on a rsync server. This server use DeltaCopy/rsync encapsulation and run on Windows

Photo Station generate some files names for example: "SYNOPHOTO:THUMB_S.jpg" , L, XL, ...

The problem is the character ':' is unix compatible but not supported by windows file system.

When you try to back-up your directory, you have allways error '23' and the backup fail.

To resolv this issue, you can do these operations:

- rename all you "SYNOPHOTO:THUMBS_<format>.jpg" by "SYNOPHOTO_THUMBS_<format>.jpg" in @eaDir directories to replace the ':' character
- edit the file /usr/syno/etc.defaults/thumb.conf with root account on sh console, replace ':' by '_' in the file names. It is useful to generate the thumbs
- Search recursively in all files located in '/usr/syno/synoman/phpsrc/photo' this string: grep -r "SYNOPHOTO:THUMB_S" *. replace all ':' by '_' in any reference. It is useful for photostation web application to visualize the generated files.

Last thing: deactivate auto DSM update to prevent lose your modifications with a new update.

After these operation, you can use together photo station and rsync-backup on a windows server rsync.

I hope this modification of the character on the generate files will be included in a future DSM version
laurentauthier
I'm New!
I'm New!
 
Posts: 5
Joined: Mon Jun 14, 2010 8:47 pm


Return to Backup/Restore for DiskStation to DiskStation/USB/eSATA/Off-site backups

Who is online

Users browsing this forum: No registered users and 3 guests