Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
First of all, this is more of a fun geeaky thingy than a reliable production backup system. Also my scripts doesnt hold good quality. That said, lets start.
Yahoo claims to have unlimited mailboxes. Possibly this can be used to backup data you wouldnt ever be able to recover, personal fotos etc. Yahoo terms of service was really too long to be read by a humanbeing.
This is my take on it.
1. Somehow pack your data into files no larger than 15-17MB. (*)
2. Install optware mutt email client. Firmware seems broken. http://dns323.kood.org/howto:optware describes this very good.
3. configure firmware msmtp to work with mutt
4. Create a script which emails a file to your yahoo email account and mark the file as sent
5. Cronify the script
~10 GB -> 905 files
905 files 1 per h -> 37 days of emailing :).
(*) Packing of files: I made a script which tries to pack files into induvidual zips. Incase filesize of a single file is too large it zips it into volumes (script is not included in this post). Reason for this approach is that it is very likely some files will go missing which makes pure volume zipping fragiale. But possible this can be solved with par2 or similiar.
----------folder view----------
...
-rw-r--r-- 1 root root 13126598 Sep 3 08:01 backup-2009-09-03-001.7z-done
-rw-r--r-- 1 root root 14666088 Sep 3 08:04 backup-2009-09-03-002.7z-done
-rw-r--r-- 1 root root 14977815 Sep 3 08:08 backup-2009-09-03-003.7z-done
-rw-r--r-- 1 root root 14887779 Sep 3 08:11 backup-2009-09-03-004.7z-done
-rw-r--r-- 1 root root 14986066 Sep 3 08:15 backup-2009-09-03-005.7z-done
-rw-r--r-- 1 root root 14961473 Sep 3 08:18 backup-2009-09-03-006.7z-done
-rw-r--r-- 1 root root 14740079 Sep 3 08:22 backup-2009-09-03-007.7z-done
-rw-r--r-- 1 root root 14928831 Sep 3 08:25 backup-2009-09-03-008.7z-done
-rw-r--r-- 1 root root 14650059 Sep 3 08:29 backup-2009-09-03-009.7z
-rw-r--r-- 1 root root 14814081 Sep 3 08:32 backup-2009-09-03-010.7z
...
...
-rw-r--r-- 1 root root 34430189 Sep 3 12:35 backup-2009-09-03-767.7z
-rw-r--r-- 1 root root 15000000 Sep 3 12:35 backup-2009-09-03-767.7z.001
-rw-r--r-- 1 root root 1504936 Sep 3 12:35 backup-2009-09-03-767.7z.002
-rw-r--r-- 1 root root 14650898 Sep 3 12:35 backup-2009-09-03-768.7z
-rw-r--r-- 1 root root 11402786 Sep 3 12:35 backup-2009-09-03-769.7z
-rw-r--r-- 1 root root 11663605 Sep 3 12:35 backup-2009-09-03-770.7z
-rw-r--r-- 1 root root 11824432 Sep 3 12:36 backup-2009-09-03-771.7z
----------folder view----------
--------------------------------mailbackup.sh-------------------
#!/ffp/bin/bash
#
# mailbackup.sh
#
# emails one file from folder afterwards mark it as sent.
#
#echo test | mutt -s "test" mail@xxxxxx.com
#
#exit on error
set -e
#echo path before: $PATH
PATH=/opt/bin:/opt/sbin:/ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin
#echo path after: $PATH
export TMPDIR=/hd/temp
IFS=$(echo -en "\n\b")
SRCDIR="/hd/temp/"
PATTERN="*backup*7z"
DONEMARK="done"
TOADRESS="xxxxxx@yahoo.com"
for file in $(find "$SRCDIR" -iname $PATTERN | grep -v $DONEMARK | sort | head -1 )
do
echo .
date
echo "$file"
echo "$file" | mutt -a "$file" -s "$file" "$TOADRESS"
mv $file "$file-$DONEMARK"
echo "$file emailed (hopefully)"
date
echo .
done
--------------------------------mailbackup.sh-------------------
-----------------cronentry example----------------------
...
43 * * * * /ffp/bin/sh /usb/home/root/mailbackup.sh >> /ffp/log/mailbackup.log 2>&1
...
-----------------cronentry example----------------------
Last edited by bjby (2009-09-03 23:26:35)
Offline