FAQ
From NasBackup
[edit] Please use the web Forum to ask new questions
[edit] RSYNC
[edit] How can I implement ssh (vpn)?
Rsync supports the ssh protocol. You can modify the rsync command in the "main.phase" file and add the right rsync qualifiers. Please follow the ssh URL.
[edit] How can I exclude or include files?
You can modify the rsync command in "main.phase" file and add the right qualifiers. For examples:
Only backup *.doc files --include="*.doc" --exclude="*.*"
Not backup *.mpg files --exclude="*.mpg"
Not backup "My Music" directory --exclude "My Music/"
You can using external text file will all your rules by using this qualifier: --exclude-from=FILE --include-from=FILE
[edit] Are there any plans to upgrade the rsync version in NasBackup?
The newest version of rsync and cygwin will be integrated into the next release. In the mean time you can easily add the newest versions of rsync.exe and the dll's from http://www.cygwin.com/ to the C:\nasbackup directory.
[edit] How can I check if the rsync daemon is running?
To check if the rsync daemon is running try loggin in with telnet to port 873:
telnet 192.168.0.43 873
If it is running and you are not blocked by firewall you should see output like this:
@RSYNCD: 28
[edit] Is it possible to use NasBackup to sync a large file, such as an ISO with a newer version on the Internet?
No it is not possible. NasBackup lets you backup (upload) PC/Windows files to a backup server.
To update an ISO image you can use plain rsync to update an ISO, only if the download server is running rsync.
[edit] General
[edit] How can I reduce the required storage space on the server?
On Linux you can run the freedups utility. Freedups searches for identical files in the directories you specify and hard-links them together, freeing up drive space without losing performance. Hard linking is 100% safe in rsync. http://www.stearns.org/freedups/
We are developing a similar utility for Windows. Please contact us for a beta.
[edit] How can I debug my phase file modification?
NasBackup is actually a shell script. Is order to debug your phase file modification you can analyze the output log file and run the shell script manually.
The shell script that is created during the run time is saved as: C:\nasbackup\log\cmd.new
The output of the script is saved as: C:\nasbackup\log\NAME_DDMMYY.log
Try looking at the log file to see if you can understand why if failed.
You can always run the shell script as a windows "bat" file, and modify it for debug Open command windows (cmd)
prompt> cd C:\nasbackup\log prompt> copy cmd.new debug.bat prompt> debug.bat
[edit] The scheduled job won't run on my Windows machine. When I right-click the task and click "Run" the message "Could not start" is displayed
A scheduled task needs a valid Windows user and password in order to run. If you right click the scheduled task and select "Run" and get a "Could not start" message it probably means the task can't login. Look in the Event Log's Security section for login errors.
You can bypass the NasBackup schedule mechanism by opening the task, browse to the nasbackup_main.exe executable and save the task.
[edit] Can NasBackup be used to backup Linux?
NasBackup only supports backing up Microsoft Windows. The backup server can be any OS that supports rsync (Windows, Linux, OS X, Sun, etc)
[edit] How can I add a S.M.A.R.T. monitor to the NasBackup report?
You can easily integrate S.M.A.R.T. into the backup report using the smartmontools Open Source project.
Copy smartctl.exe to a local directory (for example C:\nasbackup) and add the command:
C:\nasbackup\smartctl -H /dev/hda
to the "end.phase" file just before the "REM Hide" line
Now in the backup status window you will have the result of the S.M.A.R.T. disk check For example: ... SMART overall-health self-assessment test result: PASSED
Backup summary report: C:\Some-dir : success ...
[edit] Is there any software available for Windows to restore backups taken by NasBackup?
This Q&A moved to the Forum
[edit] Is there a server version for Windows or do I need to install an rsync server on Windows?
This Q&A moved to the Forum
[edit] Develop
[edit] How to work and display non english char on nasbackup_main.pl perl tk application. (diff between two files).
Please try nasbackup_main command line options --encode For more info take a look on "nasbackup_main command line options" section in the documentation.
Comparing files nasbackup_main.pl and nasbackup_main_Encode.pl
***** nasbackup_main.pl
use File::Find;
use Encode 'decode';
use vars qw ($key $working_dir $gui_text $finalfile $focusin_flag $user $hide);
***** nasbackup_main_Encode.pl
use File::Find;
use vars qw ($key $working_dir $gui_text $finalfile $focusin_flag $user $hide);
*****
***** nasbackup_main.pl
)->pack;
$main->Button(-text => 'Exit', -command => [$main => 'destroy'] )->pack;
MainLoop;
***** nasbackup_main_Encode.pl
)->pack;
$main->Button(-text => 'Cancel', -command => [$main => 'destroy'] )->pack;
MainLoop;
*****
***** nasbackup_main.pl
if (($gui eq "true") && ($hide ne "true")) {
# Fix some localisation issues, encode to iso-8859-8 or cp1255
# $gui_text->insert("end","$text");
$gui_text->insert("end",decode('iso-8859-8',$text));
$gui_text->update();
***** nasbackup_main_Encode.pl
if (($gui eq "true") && ($hide ne "true")) {
$gui_text->insert("end","$text");
$gui_text->update();
*****
***** nasbackup_main.pl
# $user_select_dir = OEM_None_latin($values[6],Win32::IsWinNT());
# $user_select_dir = OEM_None_latin($values[6],);
$user_select_dir = decode('UTF-7',$values[6]);
$answer =~ s\<dir>\$user_select_dir\eg;
***** nasbackup_main_Encode.pl
# $user_select_dir = OEM_None_latin($values[6],Win32::IsWinNT());
$user_select_dir = OEM_None_latin($values[6],);
$answer =~ s\<dir>\$user_select_dir\eg;
[edit] Support forum VIP code
The code is: 3491
