albertone74 wrote: 
> Hi guys,
> 
> Can someone please advise on the best way to create a backup (using
> Linux) of the SD card where SoA is installed?
> 
> Would be this the correct way?
> 
> > 
Code:
--------------------
  >   > dd if=/dev/diskX of=/path/to/backup bs=1m conv=noerror,sync
--------------------
> > 
> 
> Thanks a lot!
> 
> PS. That worked indeed!

Yes that works indeed but maybe not very convenient for daily backups.

I use the following script:

Code:
--------------------
    #!/bin/bash
  
  DST=admin@nas-qnap1:/share/Qdownload/backup/soa-wandboard
  START=$(date +%s)
  sudo rsync -aAXv -e "ssh" --delete --delete-excluded 
--exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","/net/*","/var/log/*","/var/lock/*","/var/run/*","/var/tmp/*","/var/cache/pacman/pkg/*","/var/lib/systemd/coredump/*","/opt/logitechmediaserver/cache/*"}
 /* "$DST"
  FINISH=$(date +%s)
  echo "total time: $(( ($FINISH-$START) / 60 )) minutes, $(( ($FINISH-$START) 
% 60 )) seconds"
  
--------------------


------------------------------------------------------------------------
IanDury's Profile: http://forums.slimdevices.com/member.php?userid=63494
View this thread: http://forums.slimdevices.com/showthread.php?t=101624

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to