Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi!
Who tried to make a backup from one DNS-323 device to another DNS-323 using rsync?
I have a wonderful working local copy using rsync, but when try to copy to another system - a lot of problems. A few days trying to do, but no result.
If someone does it work - help, pls...
Can be viewed rsyncd.conf file on "server" and string launches copying files on "client"?
Sorry for my English.
PS. 2xDNS-323 with RAID1; f/w 1.04; fun_plug 0.4
Offline
How are you trying to do that? I think I would start by mounting the other DNS-323 in a local folder and then copy the whole NAS to the other, but excluding the mounted directory, so you don't enter in a loop.
I have my DNS-323 mounted in my Linux box in a folder /DNS323.
My fstab is like this:
//dns323/Volume_1 /DNS323 smbfs 0 0
So you should try this in your DNS:
mount //<destination_DNS323_address>/Volume_1 /DNS323
For example, and see if that's better.
Regards
Offline
Thank you very mach - it's good idea. I'm very newbie in *nix system and I did not know this option.
Unfortunately, nothing has happened
I'm trying this:
172.16.0.10 - main system
172.16.0.20 - backup system
I need to mount a folder Volume_1 from device 172.16.0.20 to device 172.16.0.10 at point /test_backup
On 172.16.0.10 I wrote:
/ # mount -t smbfs //172.16.0.20/Volume_1 /backup_test
mount: mounting //172.16.0.20/Volume_1 on /backup_test failed: No such file or directory
I'm check permission on 172.16.0.20 for share TEST - "All User, R/W"
I'm edit /sys/mtd1/smb.default
and wrote "security = SHARE" instead "security = user" (after this I can make mapping folder "volume_1" from Windows without user/password request) but
no result... mount: mounting //172.16.0.20/Volume_1 on /backup_test failed: No such file or directory
May be I need to correct fstab on 172.16.0.20, but I dont know where I can find this file.
Offline
Do you have smbfs installed? try this to find out:
/ # ls /proc/filesystems nodev sysfs nodev rootfs nodev bdev nodev proc nodev sockfs nodev usbfs nodev pipefs nodev futexfs nodev tmpfs nodev eventpollfs nodev devpts ext3 ext2 cramfs nodev ramfs minix msdos vfat nodev nfs nodev autofs nodev rpc_pipefs
This is a common error when you do not support the filesystem. You will need to find a build for it for this processor/kernal combination and insmod it. Or build it yourself. I do believe fonz's fun_plug 0.5 has a Samba add-on package that supports cifs, which should be able to mount a samba share.
Another possibility is using smbclient to tar a copy of 1 dns to another.
Finally, and probably the easiest is to set one of the DNS's up with an NFS share and mount it with NFS.
Last edited by bq041 (2008-08-27 02:41:35)
Offline
bq041 wrote:
Finally, and probably the easiest is to set one of the DNS's up with an NFS share and mount it with NFS.
Hm... NFS? Its not SMB?
I do not understand the terminology, DNS-323 - my first experience with *nix system..
And my English is too bad for reading and _understanding_ megabytes of documentation .
Ok, now I found a temporary solution with rsync, thanks for your help.
PS. I can't run copy from MAIN device to BACKUP, but I can make initialize request _from_ BACKUP machine to copy needed files.
PPS. I did not face to out_of_memory on DNS-323 during copy large parts of information using rsync?
Offline
Wait. Found another option. Rsync support backups directly with ssh.
The syntax is 'rsync <local_directory> -e ssh <user>/<IP_destination><folder>' (Of course this doesn't replace Time Machine backups but it's a start to modify the script - wait, just saw you are maybe not using Time Machine. You might want to take a look)
I don't have two DNS-323 to test it. From my DNS to my Linux machine, it gives me an error but I think it's mine PC since I have a couple of network problems. I will try from my Linux to the DNS later. I'll let you know.
Offline
Hm... NFS? Its not SMB?
I do not understand the terminology, DNS-323 - my first experience with *nix system..
NFS stands for Network File System. It works sort of like samba. It is an add on to ffp 0.4 that you are using. It is found here: http://www.inreto.de/dns323/fun-plug/0.4/
When you mount with it, you do it just like you tried with smbfs, except replace the "smbfs" with "nfs".
If you search the forum for "NFS" you should find more information.
Last edited by bq041 (2008-08-27 05:12:26)
Offline
Well you could setup rsyncd on one DNS-323 and use rsync on the second to backup the rsync://<ip>/<name> . Tried a while back and it is working. If you wish to do it the ssh way, then you need to generate public key for automatic login.
Offline
shadowandy wrote:
Well you could setup rsyncd on one DNS-323 and use rsync on the second to backup the rsync://<ip>/<name> . Tried a while back and it is working. If you wish to do it the ssh way, then you need to generate public key for automatic login.
Yes, I confirm, I use it this way between my Linux PC (rsync client) and my DNS-323 (rsync-daemon). Have a look at "man rsync", it's well explained, it should work the same between 2 DNS323. You don't need any NFS or SMB mounting nor ssh stuff.
Offline
Thanks to all for your participation and help!
Yes, I understand that the correct way - use rsync on one device and rsync-daemon - on another. But I can not do it!
I make rsyncd.conf, started rsync-daemon, but when I try copy from one device to device with rsync-daemon - many mistakes.
BTW, DNS-323 doesn't have man
In the first message I have asked for an example file rsyncd.conf and console-command, which runs the backup to a remote machine ...
I tried many times, many fixes, and now I have the most correct variant (I think), and the last error, which I can not fix
172.16.0.20 - backup-server, with rsync-daemon
1. file - /mnt/HD_a2/fun_plug.d/etc/rsyncd.secrets with one string
backup:password_line
2. file - /mnt/HD_a2/fun_plug.d/etc/rsyncd.conf
max_connections = 2 secrets_file = /mnt/HD_a2/fun_plug.d/etc/rsyncd.secrets log_file = /mnt/HD_a2/LOG/rsyncd.log use_chroot = false read_only = yes list = false strict_modes = false # Deny access to all hosts just to be on the safe side hosts_deny = * timeout = 600 dont_compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz *.rar pid_file = /var/run/rsyncd.pid [main] comment = Primary Backup Location for DNS-323 # Allow access to local hosts hosts_allow = 172.16.0.10 read_only = false gid = users uid = backup auth_users = backup path = /mnt/HD_a2/NEW
3. Folder /mnt/HD_a2/NEW
/mnt/HD_a2 # ls -la drwxrwxrwx 7 root root 4096 Aug 28 00:23 . drwxr-xr-x 6 root root 1024 Aug 27 03:43 .. drwx------ 2 root root 4096 Aug 28 00:23 .systemfile drwxrwxrwx 2 nobody 501 4096 Aug 28 00:21 MAIN drwxrwxrwx 2 backup users 4096 Aug 28 00:23 NEW
4. started rsync-daemon
/mnt/HD_a2 # ps ax | grep rsync 11003 root /mnt/HD_a2/fun_plug.d/bin/rsync --daemon --config=/mnt/HD_a2/fun_plug.d/etc/rsyncd.conf 11287 root grep rsync
On another DNS-323 with IP 172.16.0.10 I'm typening in console:
/ # rsync -av --password-file=/mnt/HD_a2/fun_plug.d/etc/rsync_passw /mnt/HD_a2/LOG backup@172.16.0.20::main/12345 building file list ... done ERROR: module is read only rsync error: syntax or usage error (code 1) at main.c(802) [receiver=2.6.9] rsync: connection unexpectedly closed (4 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(453) [sender=2.6.9]
I have file rsync_passw in correct place, this file contains only password_line
What else should I do?!
dkl, pls, can you give me a example of rsyncd.conf on your DNS-323?
Offline
I was speaking of "man rsync" on the internet, not specially on the DNS323. Google is your friend ;.
I will check tonight my rsync-daemon configuration and hopefully give an answer soon enough (I'm not near the DNS now).
Offline
I'm using FW 1.03 in RAID1 configuration, and an old version on fonz's funplug (not the "ffp"one).
My rsyncd.conf is very basic (you must change the port number and the auth users):
uid = root gid = root port = <your-port> auth users = <your-user1> <user2> ... secrets file = /mnt/HD_a2/fun_plug.d/etc/rsyncd.secrets strict modes = false [vol1] path = /mnt/HD_a2 read only = no # rsyncd.conf(5) # # EXAMPLES # A simple rsyncd.conf file that allow anonymous rsync to a ftp area at # /home/ftp would be: # # [ftp] # path = /home/ftp # comment = ftp export area # # A more sophisticated example would be: # # uid = nobody # gid = nobody # use chroot = no # max connections = 4 # syslog facility = local5 # pid file = /var/run/rsyncd.pid # # [ftp] # path = /var/ftp/pub # comment = whole ftp area (approx 6.1 GB) # # [sambaftp] # path = /var/ftp/pub/samba # comment = Samba ftp area (approx 300 MB) # # [rsyncftp] # path = /var/ftp/pub/rsync # comment = rsync ftp area (approx 6 MB) # # [sambawww] # path = /public_html/samba # comment = Samba WWW pages (approx 240 MB) # # [cvs] # path = /data/cvs # comment = CVS repository (requires authentication) # auth users = tridge, susan # secrets file = /etc/rsyncd.secrets # # The /etc/rsyncd.secrets file would look something like this: # # tridge:mypass # susan:herpass
Rsync daemon is launched by fun-plug in the standard way. Once the rsync daemon is running, I have this process running:
# ps -edf | grep rsync /mnt/HD_a2/fun_plug.d/bin/rsync --daemon --config=/mnt/HD_a2/fun_plug.d/etc/rsyncd.conf
For doing the job, the Linux client uses something like :
rsync --port=<my-rsync-port> --force --ignore-errors --delete --delete-excluded --exclude=<my dir to exclude> --backup --backup-dir=`date +%Y-%m-%d` -av /<my dir to backup> <user1>@dns323::<my destination dir>
I use anacron on linux to schedule the backup.
You now have everything, hope this helps.
Offline
Excellent! It really works!
Thank you very much, dkl !!!
Offline