April 18, 2008
My backup FTP script is NOT GOOD.. it exhausted my memory ?? on the webserver caushing the server to ‘crash’ / not react for 4 hours, even connecting my monitor to the server: I could type my username, but login: nope ..
So message to self: how the hell can I FTP 40GB of data via a shell script without exhausting my memory .. <sigh> …
rebooting (fingers always crossed) and after 5 minutes the server was up again
Posted in Server-Status, Weblog related
No Comments »
March 26, 2008
#!/bin/bash
cd /home/backup/server
if [ -e data ]
then
cd /home/backup/server/data/
HOST=’ftp-server-address’
USER=’username’
PASSWD=’password’
ncftp -u $USER -p $PASSWD $HOST << EOT
binary
cd /Volume_1
mkdir `date “+%d-%m-%y”`
cd `date “+%d-%m-%y”`
mput *
bye
EOT
fi
cd /home/backup/server
rm -rf data
with some help of Matthijs en of course myself and a little ‘maggi’ I created a bin/bash shell script to backup data (backup of the server) to one of my other FTP server(s)
it checks if the data folder is available and if so than the a ftp session is started, logged on, a folder with the todays date is made and the data is put in that folder. After that the data folder including the content will be removed. Yes I know there is no validation if A = B but I’ve no idea how to accomplish that, but this works in my test environment. This script is saving me about 4 Hours of datatransfer where FTP is showing me a nice 10MB/s where Samba / NFS is showing me a not satisfied performance at all .. (I believe the total amount of data is about 40GB I have to backup everytime … ) ..
hints and tips welcome to have a A=B comparison before removal of the data folder ;-)
Posted in Weblog related
1 Comment »
September 13, 2006
General information for users of AroundMyroom, Mixfans.org, Mixfreaks, tapas-recepten, kikkuh.nl. judithsgarden.eu and more.Â
- BlueQuartz updates. Major update today with 90 updates for BQ.
- Change of POP3 server. BQ upgraded to Dovecot. Had to enable POPS to have it function properly
- Removed dust from Server
- Backup running [takes about 7 hours]
AroundMyRoom updates
- changed permalinks of AroundMyroom old style to new playground style
- changed permanent folder pr0n to erotica
- installed Wordpress and changing styles
Posted in Server-Status, Weblog related
No Comments »