SiteCopy Low-Level Wrapper Script


ma_sitecopy – SiteCopy Low-Level Wrapper Script


ma_sitecopy -mu USER -ms SERVER -md DIR [-mr REMOTE-DIR] [-mt STATE]
                        [-so "K V"] [--] [SCO]


This script wraps around the sitecopy command in order to provide a configuration-file-less interface to said command. The script generates a temporary configuration file, invokes sitecopy and deletes the temporary configuration afterwards.

As a low-level wrapper, it does not work around the differences of INIT and UPDATE operations. To allow INITs, it provides a means to add user-specified options directly to the sitecopy invocation s. t. an INIT operation can be performed.

This was originally developed as part of d5man/legacy(32) for uploading exported websites. It still does this job, but for separation of concerns is not included in the new d5man2(32) repository.

ma_sitecopy is intended to be part of an interactive upload workflow and thus asks for a password to be provided via stdin. For automation, the password can of course also be supplied through a pipeline.


-mu USER login username
-ms SERVER server address
-md DIR local source directory
-mr REMOTE-DIR remote destination directory
-mt STATE local state file
-so K V any number of site rcfile options
--   marks end of options for this wrapper script
SCO   any number and format of direct sitecopy-options


Example for first-time invocation (INIT)

ma_sitecopy -mu masysma -ms -md ".../mawebsite5" \
    -mr html -mt ".../sitecopy_state.xml" -so "state checksum" -- -i

Example for subsequent invocation (UPDATE)

ma_sitecopy -mu masysma -ms -md ".../mawebsite5" \
    -mr html -mt ".../sitecopy_state.xml" -so "state checksum" -- -u

See Also

sitecopy(1) Website 5 (1.0.2) – no Flash, no JavaScript, no Webfont, no Copy Protection, no Mobile First. No bullshit. No GUI needed. Works with any browser.

Created: 2020/02/07 21:43:19 | Revised: 2022/09/18 21:18:31 | Tags: scripts, d5man, sitecopy, linux, ftp | Version: 1.0.0 | SRC (Pandoc MD) | GPL

Copyright (c) 2014, 2020 For further info send an e-mail to

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <>.