• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu

RsyncBackup v.005 was Samba sloow

Started by sXwamp, 2012.01.03, 03:47:43

Previous topic - Next topic

sXwamp

Quote from: DougB on 2012.01.02, 23:27:54
Well, not quite. First, the user needs to figure out what you are doing, so they don't get some surprises.

Done - rewrote, clarified and added to 'Docs folder' :  http://www.os2notes.com/os2rsync.html

All of this is in the next version and not released yet.


Quote
You use "-aqzx" which is probably wrong. I would suggest using "-aqzX", or "-aqX", which might be faster, depending on the system, and the network link. "x" is not the same as "X". From the docs:
-X, --xattrs                preserve extended attributes
-x, --one-file-system       don't cross filesystem boundaries

Typo -x, fixed and removed the -z (compress) option, since usage would be more then likely done over a LAN (and not the internet).


Quote
It would also be good to demonstrate the use of the "--delete" parameter. Without that, all of the old stuff that has been removed from the source directory will still exist in the target directory. That can result in a real mess, eventually.

Added to the docs: http://www.os2notes.com/os2rsync.html

It explains the 3 types of backups now for a working knowledge.


Quote
Since you brought it up what's the correct way to do it now

Replace this:
/***********************************************************************/
/* query the bootdrive  (didn't use SysBootdrive 'cause of OREXX)      */
/***********************************************************************/
IF BootDrive='' THEN
 DO
 path_to_os2_ini=VALUE(USER_INI,,"OS2ENVIRONMENT")
 BootDrive=FILESPEC(D,path_to_os2_ini)
 END

with this:
/***********************************************************************/
/* query the bootdrive  (didn't use SysBootdrive 'cause of OREXX)      */
/***********************************************************************/
IF BootDrive='' THEN
 DO
 BootDrive=sysBootDrive()
 END

This method will not work on any ancient REXX (pre Object REXX time frame), but then the user has the option of inserting the proper drive into the script.
[/quote]


Got it, thanks


Quote
One config file, with all of that stuff would be sufficient, it doesn't matter if some of it isn't used in various scripts.

The scripts are for automation and scheduling, adding that next.  Guess it would be easy enough to have two different sets.


Quote
It would also be helpful, if you put a sample of how to copy something that is in the root of a drive, to the root of a drive on another system. That helps if a user wishes to use RSync to synchronize two systems.

I thought about that and it is a very bad idea to use Rsync on the root of a drive (unless you are an expert with Rsync). That's why I use the \RsyncBackup\Backups directories.

The --delete option if used incorrectly will delete everything on your partition (so, i did not include an example of that option).


Quote
A GUI interface, with check boxes, or radio buttons, for the options, might work a lot better.

Yes, long term goal - something like this:





Thanks again for the input and suggestions !

Greggory