Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: tropicalview on September 07, 2009, 08:53:53 PM
-
Dear all,
i noticed that when DAR2 is making it's backup, and the destination disc gets full, the whole server will stops responding.
this happened to me with Buffalo linkstation NAS device as well as a windows share on a computer.
is there anything i can do to prevent the server from hanging?
-
is there anything i can do to prevent the server from hanging?
Glibly... plan a bit and ensure enough space is available.
I can't recall my SME ever hung with a full backup target.
Having said that I don't recall not planning ahead that badly.
My site has a NAS target with DAR2 on smbfs ...if that helps.
-
Hi Piran,
thank you for the answer,
Indeed i agree that there should be some planning in backing up.
the problem is that i bought cheap buffalo linkstation devices that have a trashbox, and it's not possible to disable this trashbox.
that makes that the backup device filles up after a few days......
about the file system, i use CIFS, while the SMBFS sounds more logical to me.
i remember when i installed this system the SMBFS did not work, and someone advised me to use CIFS.
How do you configure your backup? and is that going via a normal "windows share"?
these parameters i have filled:
Target //ip-of-nas/share
username: admin
Password: *password
File system cifs
clice size 650
compression 5
expiry 10
verbose off
backup day *
backup time 00.05
-
Try smbfs instead of cifs.
Kill compression ...maybe THAT is your 'hanging'.
Compression takes a very long time.
If you are so short of working space reduce 'expiry'.
You HAVE to sort something out on your Buffalo.
It badly needs automatic maintenance functionality.
-
I created a .sh file some time ago looking like this:
while [ true ]
do
mount -t cifs //192.168.123.123/share -o username=admin,password=password /mnt/hkroon
cd /mnt/hkroon/trashbox/admin-svr.abeltjeadmin.net/daily
NOWDATE=`date +%y%m%d`
ls -s -1 > $NOWDATE.txt
rm *.dar -f
mv db.zip $NOWDATE-db.zip
ls -s -1 > $NOWDATE-a.txt
cd /
umount -l /mnt/hkroon
sleep 86401
done
If i can place this script in the startup of the server so that it's always running then my problem is also solved.
how can i place it in the bootup of the server?
Kind regards,
PS. password and URL are changed for security reasons.
PS. this file is now located here: /home/e-smith/files/ibays/contribs/files/clean-backup/clean-backup.sh
-
I'm not a programmer ...more of an experienced tweaker.
Suggest you research using a cron job for your maintenance.
Also, rather than using plain open text usern/passw in that string,
consider this possibly more ergonomic method...
http://wiki.contribs.org/Backup_Windows_Computers_Using_Affa#Create_your_mount.cifs_credentials_file