Online backup script
#2
(11-28-2014, 08:06 AM)xoft Wrote: - runs every N hours (N ~~ 24)
- packs folders "gal" and "world" and files "Gallery.cfg" and "Gallery.sqlite" into a 7z file
- names the resulting 7z file based on local date (and possibly time), format yyyy-mm-dd hh-mm-ss.7z
- uploads the resulting 7z file to a remote host running Linux via scp; scp needs to use a specified username and a private key in a specified file. The destination folder on the remote host should be based on the year and month of the upload (some/remote/path/yyyy-mm/yyyy-mm-dd hh-mm-ss.7z). The folder may need to be created if it doesn't exist.
- uploads the resulting 7z file to a remote SMB public-writable share, again in a folder named with year and month.

Does it need to be "7z"? This is not installed at linux systems by default. Usually it would be "tar" or better "tgz" which also can be used in Windows if you have the prg for 7z installed

Using scp is simple, and the keyfile just need to be inside the ".ssh" folder of the user which runs the script.

I can do that script for you, and also will try to explain the commands you need to execute for registration etc. Just right now i have no time Smile


Edit:
- is the smb share already mounted or not? If yes hopefully using mount cifs or smbclient?!
Reply
Thanks given by:


Messages In This Thread
Online backup script - by xoft - 11-28-2014, 08:06 AM
RE: Online backup script - by nouseforname - 11-28-2014, 02:46 PM
RE: Online backup script - by xoft - 11-28-2014, 06:15 PM
RE: Online backup script - by xoft - 11-28-2014, 10:59 PM
RE: Online backup script - by nouseforname - 11-29-2014, 12:27 AM
RE: Online backup script - by nouseforname - 11-29-2014, 01:00 AM
RE: Online backup script - by xoft - 11-30-2014, 05:17 AM
RE: Online backup script - by nouseforname - 11-30-2014, 05:24 AM
RE: Online backup script - by xoft - 11-30-2014, 06:39 AM
RE: Online backup script - by xoft - 11-30-2014, 08:07 PM
RE: Online backup script - by nouseforname - 11-30-2014, 08:52 PM



Users browsing this thread: 1 Guest(s)