วันพุธที่ 17 กุมภาพันธ์ พ.ศ. 2559

Backup rasberry pi with ftp server

http://pingbin.com/2012/01/howto-rsync-backup-ftp-server/
https://adream608.wordpress.com/2013/02/13/mark-one-online-network-backup-of-raspberry-pi/


apt-get install curlftpfs
curlftpfs -o allow_other -o umask=000 usr:pswd@10.0.0.1 /mnt/server
where usr = your servers ftp user name and pswd = ftp server password

dd bs=1M if=/dev/mmcblk0 of=/mnt/server/RPI_Backup.img


Trip : บีบอัดด้วย
dd if=/dev/mmcblk0 bs=1M | gzip -c > /mnt/server/RPI_Backup.img.gz
 
แบบโชว์ status ด้วย pv
pv -tpreb /dev/mmcblk0 bs=1M | gzip -c > /mnt/server/RPI_Backup.img.gz 
 

[Solved] smokeping problem with apache

# Link in the smokeping apache config (apache2 was installed above as a req for smokeping)
cd /etc/apache2/conf-available
sudo ln -s ../../smokeping/apache2.conf smokeping.conf

# Enable the config and mod_cgi
sudo a2enconf smokeping
sudo a2enmod cgid

service apache2 restart

backup sdcard Rasberry pi on Linux with dd show status of copy

apt-get install pv
pv -tpreb /dev/sdb | dd of=rasp.img bs=1M


***sdb is ALL of SDCARD partition include boot***


source==> http://www.cyberciti.biz/faq/linux-unix-dd-command-show-progress-while-coping/