luckyBackup is a a powerful, fast and reliable backup & sync tool.
This page provides information and support for the Windows port of luckyBackup. The current status of the port can be summed up with something like, “It mostly works and there is active development to improve it.” The Windows version of luckyBackup is not however 100% functional and there are known (and probably unknown) glitches and bugs with it. Please if you find any problems report them back to us so that we can get them resolved and make luckyBackup just as fantastic on Windows as it already is on Linux.
A side note! I'm brand new at using Qt and C++ is pretty sketchy for me since I haven't used C in years. So the “active development” means, a slow but steady progress.
Please reference http://luckybackup.sourceforge.net/ for more information about luckyBackup and other ports or distributions of it.
For support please use the luckyBackup forums on sourceforge if possible. Otherwise you may contact the author for general support or BMT Solutions for e-mail support of the Windows port (Phone support is not provided).
This is accurate for version 0.4.7 based on my testing. Please report any problems.
| Feature | Status |
|---|---|
| Local > Local Backup | Works! |
| Local > Remote Rsync Backup | Works! |
| Local > Remote Rsync over SSH Backup | Works using an SSH Key. |
| Scheduling Backups | Works! via Windows Task Scheduler |
| E-Mail Backup Report | Works! via Blat |
| Windows VSS | Options being tested. |
| luckyBackup snapshots | Does not work correctly. Fix coming in future release. |
An installer package is being developed for the Windows port but is not yet available. Please continue to use the Manual method.
NOTE: An alternate to this is using cwRsync. A free version is available here however the latest version can be purchased here for a modest price and includes support
Otherwise..
First you need Cygwin installed on your computer. You can download it from http://www.cygwin.com/. Once you have downloaded the setup.exe file you need to install both rsync and openssh. Below is a walk-through of images from when I installed Cygwin.
There's not a whole lot to installing luckybackup itself. Just download and uncompress the files into any folder you choose. There's no installer so you will need to create a shortcut if necessary on your desktop yourself.
I'll work on this more as I have time.
luckyBackup doesn't have a prompt to enter SSH passwords so you need to use a SSH key instead. Below is a very quick and basic guide to create a SSH key. I'm sure more advanced options exist :)
ssh-keygen -v -t rsa
This will create a key in the /home/username/.ssh/ folder of your cygwin environment and will be used by default when using ssh to connect to a system. You'll need to copy the id_rsa.pub file to the server you want luckyBackup to backup to and from there add it to your users keyfile. This might vary from system to system but here's an example adding it to a FreeBSD system.
scp ~/.ssh/id_rsa.pub user@host:key.pub
mkdir -p ~/.ssh cat ~/key.pub >> ~/.ssh/authorized_keys
On *nix platforms luckyBackup relies on the systems crontab scheduler. Since that does not exist on Windows the closest (Windows based) option is to use the Windows Task Scheduler. Unfortantly luckyBackup cannot currently configure the schedule for you so it must be done manually. Optionally you could configure crontab as a server through cygwin but I haven't got time to test and write instructions for that yet.
Placeholder :)
Placeholder :)
- Thanks Valerio
* At this point it only misses to close the program after the backup (it will open a new windows for each backup). If it was linux I would use pkill in 'Also execute/after' but, on windows, I don't think it's possible without getting crazy! What about adding a flag: 'Close luckybackup at the end'?
You can configure luckybackup to send e-mails via any command-line e-mail program. One option is to configure sSMTP in cygwin or another option would be any windows e-mail client that supports sending e-mail from the command-line.
You can configure the command luckybackup executes when sending an email from the “Profile” menu then select “Email”.
”Blat is a Windows (32 & 64 bit) command line utility that sends eMail using SMTP or post to usenet using NNTP” that has been around for a pretty long time. It's a quick an easy solution to sending automated e-mails on Windows and works perfectly with luckyBackup.
First visit http://sourceforge.net/projects/blat/files/ to download Blat. I used http://sourceforge.net/projects/blat/files/Blat%20Full%20Version/64%20bit%20versions/blat307_64.full.zip/download for my testing.
Blat doesn't have an installer and it's what you could call a “portable” tool. Simply uncompress the downloaded file and copy it to a location of your preference. If you're unsure you can copy/move the contents of the “full” folder into your luckyBackup folder. Another option is to create a folder named “Blat” somewhere on your system and copy/move the files there instead.
You should have the following files:
c:\Blat\blat.exe - -f %f -to %t -s %s -server %v -attach %l -body %b
For more information please reference the blat website. It has documentation and many examples that you can use for more advanced configurations of blat.
Another tool that might work well but I have not tested it yet.
http://caspian.dotconf.net/menu/Software/SendEmail/ http://www.makeuseof.com/tag/send-automated-emails-save-time-sendemail-windows-task-scheduler/ [[http://www.howtogeek.com/125045/how-to-easily-send-emails-from-the-windows-task-scheduler/]]
Another tool that might work well but I have not tested it yet.
Within the cygwin environment there's a few ways to send e-mail. You can install an MTA (which is outside the scope of this wiki) such as Postfix, Sendmail, or EXIM. Or a more basic tool like ssmtp or the “email” package.
I was testing using the “email” package and was able to successfully send e-mails from the command line using a command similar to the one below.
c:\cygwin\bin\email -b -r smtpserver.domain.tld -p smtpport -m authtype -u username -i password -s subject to@domain.tld
However, when I tried to use this with luckyBackup the email program would hang and luckyBackup would timeout and return gracefully. Once I closed luckyBackup the email program would finally complete and send an e-mail. I'm not sure what the cause is but it's obviously not a good solution like that.
Thunderbird supports command-line options for sending mail but it will not send mail unattended. You still have to click the “Send” button once the mail composer opens. Please reference the Command Line Options page for Thunderbird for more details.
Spot reserved for future :).
http://www.msexchange.org/tutorials/Command-Line-based-Exchange-Management-ExchMbx.html http://sarithvs.wordpress.com/2010/12/30/sending-mail-using-command-line-using-exchange-management-shellwindows-powershell/ http://www.techrepublic.com/article/use-mapisend-to-send-e-mail-from-a-command-line-or-batch-file/5033500 http://ss64.com/nt/mapisend.html
Being able to backup open/system files is sometimes very essential. Windows has support to Volume Shadow Copy service which is similar to filesystem snapshots on *nix platforms. However neither rsync or luckyBackup have built in support to utilize Windows VSS. There are a few ways to get this to work however.
You can create batch scripts that luckyBackup will execute before and after a backup. With this feature you can create scripts to get VSS enabled for a specific backup.
There are patches floating the web that add VSS support to rsync and there's at least one person who's hosting a pre-built executable for windows with VSS patches.
http://www.consolejunky.net/cwrsync-vss/
Using this version of rsync you should be able to utilize VSS for your backups.
https://www.itefix.no/i2/content/building-rsync-and-patches-vss discussion about cwrsync-vss
You can create a custom wrapper to the rsync.exe command to get VSS support.
If you want to download the luckyBackup source and compile it yourself here are some basic instructions to get you started. This is what I use and there may be other (maybe ever better) methods. Please let me know if you notice an error or are aware of a better option
notice : this section is a work in progress :)
There's a contributed rsync-wrapper we received that adds VSS support to luckyb. It's currently not available as a pre-built download like 0.4.7 is and may be included with 0.4.8 release. To build it you need Python and py2exe installed.
http://www.python.org/getit/windows/
I installed version 2.7.3 http://www.python.org/download/releases/2.7.3/
via this download http://www.python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi 32 bit version is http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi
Run the downloaded file
http://www.anthonydebarros.com/2011/10/15/setting-up-python-in-windows-7/ http://docs.python-guide.org/en/latest/starting/install/win/
Download py2exe from sourceforge http://sourceforge.net/project/showfiles.php?group_id=15583
I installed version 0.6.9 http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/ via the download http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/py2exe-0.6.9.win64-py2.7.amd64.exe/download for 32 bit get http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/py2exe-0.6.9.win32-py2.7.exe/download
Notes about version.. http://sourceforge.net/mailarchive/forum.php?thread_name=imet85%24ngl%241%40dough.gmane.org&forum_name=py2exe-users
cx_freeze seems to be more active. Maybe we should try that? http://cx-freeze.sourceforge.net/
Another option is pyinstaller to look at http://www.pyinstaller.org/
here's a list http://www.freehackers.org/Packaging_a_python_program
set path=%PATH%;c:\Python27
cd \data\code\luckybackup\0.4.8\rsync-wrapper-win\
python setup.py py2exe
A dozen or so lines will fly by and it will give you a notice about required .DLL files. The .exe file should now be compiled and executable on your system. The compiled version should be in a subfolder called “dist” along with a few other files.
Here's a few links to some reference information I might need in the future while trying to improve luckyb on windows.