Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Zipping a Save File on a PC

12 views
Skip to first unread message

Falco

unread,
Dec 29, 2009, 9:03:52 AM12/29/09
to
I am trying to do an online backup each night to file, ftp it to a
Windows 2003 server, compress it with WinRAR and then send it off
site. I do a full SAVLIB on Sunday and a SAVCHGOBJ the other days.
This is just one library and the problem is that the full save is over
2GB. When I decompress the full backup, FTP is back to the iSeries
and try to do a DSPSAVF it tell me invalid data. The smaller saves
display okay.

I've tried using the ZIPSAVE from easy400.net but could never get it
to work and the same with JAR. Another issue is that after I save the
library to a SAVF the system storage goes from 60% to 80% so zipping
the SAVF on the iSeries pushes it over 90%.

Does anyone know of a compression software to use on the PC side that
will work on the large SAVF. Here is the WinRAR command being run:
"C:\Program Files\WinRAR\winrar.exe" m -m5 "D:\iSeries\s36f.rar" "D:
\iSeries\s36f"

Thanks,

Falco

Dr.Ugo Gagliardelli

unread,
Dec 29, 2009, 2:16:53 PM12/29/09
to
il 29.12.2009 15.03, Scrive Falco 38505656:
Maybe a compression software will easily run outofmemory creating an
archive from a single large file.
I would store the savf without compressing further more than the
compression you can get with DTACPR(*YES) parameter of each SAV* command.
If you are running os400 at V5R4 and up, you can use DTACPR(*HIGH)
parameter, that use the same LZ1 compression algorithm as winzip use.
The sav command will take some more time, but you will be able to do the
whole operation in a single step and it's safer.

yl_mra

unread,
Dec 29, 2009, 11:15:57 PM12/29/09
to
> Does anyone know of a compression software to use on the PC side that
> will work on the large SAVF.  Here is the WinRAR command being run:
> "C:\Program Files\WinRAR\winrar.exe" m -m5 "D:\iSeries\s36f.rar" "D:
> \iSeries\s36f"

I do this all of the time using either one of two methods.

1. FTP the file to a windows directory in binary mode and use WinZip
to compress the file for storage. When I decompress the file and move
it back to the System i it displays properly using DSPSAVF and
restores without a problem.

2. After saving the library, I use PASE to tar and compress the file
using standard compression which I have had no problems with regarding
either UNIX or Windows based decompression programs. Files compressed
via this method get distributed to users that use all types of systems
and we have yet to have a user not be able to use the uncompressed
save file on their IBM i system. One of the nice things about using
PASE is that you don't have to move the file, you can access it
directly from the QSYS file system using /QSYS.LIB/MYLIB.LIB/
MYFILE.FILE.

Also, when you save the library, use the compression available with
the SAVLIB command if you are using a newer IBM i release.

jonathan bailey

unread,
Dec 30, 2009, 5:31:26 AM12/30/09
to
"Falco" <cwhi...@hotmail.com> wrote in message
news:740f4a9b-55af-47cd...@j24g2000yqa.googlegroups.com...
Can you use the dos (windows) fc command to see if compressing &
decompressing has failed?
Try fc /B original_file file_compressed_then_decompresed
If this shows some errors then rar is to blame. Otherwise you may be having
trouble with ftp? There have been several posts here re ftp & large files. I
think you will run out of space trying to ftp back the savf without any
changes & compare it to the original.

I think I have had trouble with jar when using /qsys or /qdoc, ie libraries
or documents. The rest of / seemed OK. This would also cause you a problem
as copying from savf to / would require a 2nd copy of the data.


--
Jonathan


Falco

unread,
Dec 31, 2009, 1:38:27 PM12/31/09
to
I found out that the FTP was not completing because of disk space on
the drive where the temp files are located. After that was changed it
worked fine.

Thanks for the input.

WDS

unread,
Jan 4, 2010, 12:18:33 PM1/4/10
to
On 12/29/2009 8:03 AM, Falco wrote:
> I am trying to do an online backup each night to file, ftp it to a
> Windows 2003 server, compress it with WinRAR and then send it off
> site. I do a full SAVLIB on Sunday and a SAVCHGOBJ the other days.
> This is just one library and the problem is that the full save is over
> 2GB. ...

I know this isn't your specific problem but something to watch out for
is exceeding 2GB zip file size. For instance, Windows native .zip
support (at least for XP) will corrupt the file if it exceeds 2Gb in
size. Some zipping utilities can avoid this problem (not sure about
WinRAR, though).

0 new messages