help for sysport(Roger Newson)

Zip system directories for porting to another machine

sysport , saving(zipfilename[, replace])
[ dirlist(sysdir_list) ]

where sysdir_list is a list of one or more names with the patterns

plus | personal | site | oldplace

Description

sysport inputs a list of one or more sysdir code words for system directories
and saves the corresponding directories to a zip file,
in which the system directories can be ported to another machine.
This is very useful if a user wants to port the user's add-on packages
to another machine, which may have no internet access or restricted internet access,
so the user may not be able to install add-on packages using net or ssc.

Options for sysport

saving(zipfilename[, replace]) is required.
It specifies the filename to be created or replaced. If
zipfilename is specified without an extension, .zip will be assumed.

dirlist(sysdir_list) specifies a list of one or more code words,
recognised by sysdir as identifying system directories used by Stata,
which sysport will zip to the file specified by the saving() option.
The code words may be in upper or lower case,
and must be plus, personal, site,
or oldplace.
If dirlist() is not specified,
then it is set to plus,
and the output zip file will contain the add-on packages
installed by the user.

Examples

Zip the user's PLUS folder:

. sysport, saving(myplus, replace)

Zip the user's PLUS, PERSONAL, and SITE folders:

. sysport, saving(myplus, replace) dir(plus personal site)

Author

Roger Newson, King's College London, UK.

Email: roger.newson@kcl.ac.uk

Also see

Manual: [P] adopath, [R] zipfile, [R] net, [R] ssc

On-line: help for sysdir, adopath, zipfile, net, ssc