Node:Adding a new account, Next:, Up:WebPublish Accounts



Adding a new account

To create a WebPublish account, you must add a new record to the account database file. You can add a new record to the account database file by using the -add command with the following DATA options:

-a or --account
The account name
-w or --website
The local directory containing the website.
-s or --server
The FTP server to transfer the website too.
-u or --user
The user name to use when logging into the server.
-p or --password
The password to use when logging into the server.
-d or --directory
An optional subdirectory on the server to publish the website too.

The format of the command line string to use when adding a new record to the account database file is:

webpublish --add -F account -a ACCT -w SITE -s FTP
-u USER -p PASS [-d DIR]

ACCT should be replaced with the name that you would like to call the account. Some example account names are personal, tripod, weedguy, and mywebsite. Whatever you decide to call the account, each account name must be unique.

SITE should be replaced with the local directory of the website that is managed by this account. This should be a full directory path. If, for example, you were creating an account for a website that was located at /home/mydir/mywebsite then you would replace SITE with the string /home/mydir/mywebsite.

FTP should be replaced with the name of the FTP server that WebPublish will transfer the website to. Some example FTP servers are ftp.tripod.com, ftp.padresoftware.com, and ftp.gnu.org.

USER should be replaced with the name that is used to log into the FTP server

PASS should be replaced with the password that is used to log into the FTP server. -directory (-d) is optional. When the --directory option is included on the command line, DIR should be replaced with the directory on the remote server that the website is to be published too. For example, if you wish to publish a website to the directory photos/personal on a remote server then you would replace DIR with photos/personal. This will cause WebPublish to transfer the website to the photos/personal directory on the remote server. This option is especially useful when you publish more than one website to the same FTP server.

The following example will create a new WebPublish account called personal that will publish the website in the local directory /home/mydir/mysite to the FTP server <ftp.example.com>.

webpublish --add -F account -a personal -w /home/mydir/mysite
-s ftp.example.com -u myname -p mypass