Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: spyrule on November 04, 2007, 04:42:47 AM
-
Hello,
Sorry for posting this, but all the information I found was quite confusing as to the simplest method to automate a full
backup to a windows xp shared folder?
Only reason for this, is I don't have a tape-backup, I cannot get a burner for this server, and USB external drives are not even an option (office
won't pay for it).
However, my main workstation has a burner, so if I could get my server to do a full backup to several dvd size (4.2Gb) files, and dump them in a shared directory
from my workstation (which can see the server, and visa-versa) then I would be ok.
However, I tried using DAR to do this, but the log always reads that it cannot find the drive "\\kccxxxx\Server_backup\ ".
Is their an easy way to do this, or am I actually over complicating it, like I usually do?
Thanks in advance,
Spyrule.
-
spyrule
...I tried using DAR to do this, but the log always reads that it cannot find the drive "\\kccxxxx\Server_backup\ ".
If you are using Darrell Mays dar2 backup contrib (and any other similar backup contrib), then specify your share like this
//kccxxxx/Server_backup
-
Yeah I've tried that, and I still get :
kccweb e-smith-bg: Connecting to /mnt/dar2/full_backup to //sun/kaccxpst22/Server_Backup
kccweb e-smith-bg: 3446: Connection to sun failed
kccweb e-smith-bg: SMB connection failed
I've also tried no domain specified :
kccweb e-smith-bg: Connecting to /mnt/dar2/full_backup to //kaccxpst22/Server_Backup
kccweb e-smith-bg: 3446: Connection to kaccxpst22 failed
kccweb e-smith-bg: SMB connection failed
Now I just realized that the server is on a different ip range then my workstation, however they ARE inside the same actual network.
workstation is : XXX.19.0.25
SME Server is : XXX.19.1.117
Would this make a difference?
-
Now I just realized that the server is on a different ip range then my workstation, however they ARE inside the same actual network.
workstation is : XXX.19.0.25
SME Server is : XXX.19.1.117
Would this make a difference?
Yes. There needs to be a router between two different network address ranges.
-
Ok,
So that was a correct assumption, the system has to be in the same subnet group.
However now when I run DAR2, I Get :
Nov 5 04:28:03 kccweb squid[4250]: storeDirWriteCleanLogs: Starting...
Nov 5 04:28:03 kccweb squid[4250]: Finished. Wrote 0 entries.
Nov 5 04:28:03 kccweb squid[4250]: Took 0.0 seconds ( 0.0 entries/sec).
Nov 5 04:28:03 kccweb squid[4250]: logfileRotate: /var/log/squid/store.log
Nov 5 04:28:03 kccweb squid[4250]: logfileRotate: /var/log/squid/access.log
Nov 5 08:31:26 kccweb /etc/e-smith/web/panels/manager/cgi-bin/dar2[10461]: /home/e-smith/db/dar2: OLD full_backup=dar2|Backup|etc/e-smith/templates-custom,etc/e-smith/templates-user-custom,etc/group,etc/gshadow,etc/passwd,etc/samba/secrets.tdb,etc/samba/smbpasswd,etc/shadow,etc/smbpasswd,etc/ssh,etc/sudoers,home/e-smith,root|Compression|9|Description|Backup the Entire server|Exclude|home/e-smith/files/ibays/scans/files/*.pdf|Expiry|7|Mount|/mnt/dar2|Password|xxxxxxxx|Prune||Slice|4150|Target|//sunmedia/kaccxpst22/Server_Backup|Username|xxxxxxx|VFSType|smbfs|Verbose|on|backupDay|manual|backupTime|16:35|status|enabled
Nov 5 08:31:26 kccweb /etc/e-smith/web/panels/manager/cgi-bin/dar2[10461]: /home/e-smith/db/dar2: NEW full_backup=dar2|Backup|etc/e-smith/templates-custom,etc/e-smith/templates-user-custom,etc/group,etc/gshadow,etc/passwd,etc/samba/secrets.tdb,etc/samba/smbpasswd,etc/shadow,etc/smbpasswd,etc/ssh,etc/sudoers,home/e-smith,root|Compression|9|Description|Backup the Entire server|Exclude|home/e-smith/files/ibays/scans/files/*.pdf|Expiry|7|Mount|/mnt/dar2|Password|xxxxxxxx|Prune||Slice|4150|Target|//kccixpst34/Server_Backup|Username|xxxxxxx|VFSType|smbfs|Verbose|on|backupDay|manual|backupTime|16:35|status|enabled
Nov 5 08:31:39 kccweb e-smith-bg: Connecting /mnt/dar2/full_backup to //kccixpst34/Server_Backup
Nov 5 08:31:40 kccweb kernel: init_special_inode: bogus i_mode (0)
Nov 5 08:31:40 kccweb kernel: smb_retry: no connection process
Nov 5 08:32:10 kccweb kernel: smb_add_request: request [d55b3e80, mid=0] timed out!
Nov 5 08:32:10 kccweb kernel: smb_delete_inode: could not close inode 2
Nov 5 08:32:10 kccweb mount.smbfs[10485]: [2007/11/05 08:32:10, 0] client/smbmount.c:send_fs_socket(410)
Nov 5 08:32:10 kccweb mount.smbfs[10485]: mount.smbfs: entering daemon mode for service \\kccixpst34\Server_Backup, pid=10485
Nov 5 08:32:10 kccweb e-smith-bg: Expanding /etc/dar2/full_backup template
Nov 5 08:32:10 kccweb e-smith-bg: Creating destination /kccweb/full_backup dir
Nov 5 08:32:10 kccweb e-smith-bg: /bin/mkdir: cannot create directory `/mnt/dar2/full_backup/kccweb': Permission denied
So after seeing this I figured... hmm maybe I'll just create it manually. However, i log in with full root, and then attempt to do the same,
and I get permission denied even for just displaying the directory (ie : ls). needless to say mkdir gives me permission denied as well.
Anybody heard of this ?
I have searched for the same problem and I found this :
and after reading the included link I tried :
mount -t smbfs //kccixpst34/Server_Backup /mnt/dar2 -o username=myuid,dmask=777,fmask=777
and it mounts however I still get permissions denied.
Anybody know the specifics to solve this issue?
Thank you in advance,
Spyrule
-
Actually, i figured it out.
it was because I had it set to smbfs, when in fact I should have used cifs as the file system. once I changed it to that, it worked perfectly.
to test this I did :
mkdir /mnt/test
mount -t cifs -o user=USERID //192.168.0.10/Server_Backup /mnt/test
(entered the password when it asked for it)
cd /mnt/test
ls
(listed the backup files).
Woohoo!
with that I was able to realize smbfs was the wrong file system, cifs is what I needed to mount a windows xp shared folder.
I specified the IP for testing, however once the backup is complete, I will test again with share name.
Anybody know how to verify once the backup is complete?