Package: wesync
UsageGeneral informationWhen you run the command in a directory that is known to the configuration (host and path both match),
the default project and deployment are determined automatically and used in subsequent commands.In that case there is no need to issue --project or --deployment commands--workdir: The working directory for wesync. Default is ~/wesync--verbose: Additional working information--debug: Also print debug messages--stash: The directory of the stash, relative to workdir. Default is stashSnapshotsSnapshots are locally stored backups of the project according to it's configuration or typeIt usually contains the database and one or more file archives.Create a new snapshotwesyncsnapshotexport--project<projectName>--deployment<deploymentName>[--only-database][label]This saves a snapshot locally.labelSets the label for the export. A random hex will be generated if missingRestore a snapshotwesyncsnapshotimport--project<projectName>--deployment<deploymentName>[--only-database][--label<label>][--path<path>]This uses the local snapshot to restore the project database and files--only-database: This flag export/imports only the database from the snapshotlabel: Import the snapshot by the specified labelpath: Import the snapshot using the specified path.If both path and label are missing, the most recent snapshot for the project will be imported.List snapshotwesyncsnapshotlist--project<projectName>This list snapshots for the specified project. If project is omitted all snapshots are listedDelete snapshotswesyncsnapshotdelete--project<projectName>--label<label>--path<path>Delete a snapshot either by label or path. Project is required when deleting a single snapshot.Purge all snapshotswesyncsnapshotpurge--project<projectName>Delete all snapshots for a project. If project name is omitted all snapshots will be deleted for all projects.SyncThe sync command uses different strategies to export data from a project and import it in another project in the same command
The command requires a project, a source and destination deploymentwesyncsync--project<projectName>sourceDeploymentdestinationDeployment[--sync-strategy][--only-database]--only-database: This flag syncs only the database between deployments--sync-strategy: Determines the method that sync will use. Options are described belowSync strategiessnapshot: Export a snapshot on the sourceDeployment, copy it to the destinationDeployment using rsync, and import itsnapshotScp: Same as snapshot, but transfer the data using scp instead of rsyncscp: Stream the database and copy the files from source location to destination location using SCPrsync: Stream the database and sync the files from source location to destination location using rsyncStreaming the database implies piping the database export to the database import commandBackupsThe backup command uploads a project snapshot it to the backup location using SFTP.wesyncbackup--project<projectName>push--backupmy_location--label37fca811--replace--latest--label <label>: Label of the snapshot the will be pushed--backup <name>: Name of the configured backup location--replace: If the backup already exists on the backup location, replace it.--latest: Copy/restore the backup data to/from the latest folder. Overwrites the previous contentPush & PullUse a label to identify the snapshot and then push it to backup or pull it from backup locallyExport && ImportExport a snapshot and push it backup or fetch a snapshot from backup and import itOther commandsConfiguration update/pushCreate a new work directorywesyncconfiginitPurge the work directorywesyncconfigpurge[--full]--full: Delete entire directory, not just configurationupdate / commmitwesyncconfigupdate|commitFetches new configuration from the repository or commits changes and pushed to remoteBuildingInstall build toolspip3install--upgradebuild
pip3installvirtualenvGo to project root directory and run build modulepython3-mbuildFind the whl file and install it globally (for testing)pip3install--force-reinstalldist/wesync-0.0.1-py3-none-any.whlTest the package:wesync--help
python3
>>>importwesync

python3-mwesync