ss sync staging
This command runs the associated bash script, which, if STAGING_SITE
is enabled in ss-config (set to true
) then it will proceed to copy over all your files from the production site’s folder into the staging site’s folder, with the exception of the /uploads/
folder… this is to save space, and avoid headaches. For example, very small cloud servers don’t have lots of disk space, so there’s no reason to copy over massive amounts of media uploads. Instead, using some Linux symlink magic, SlickStack simply tells the staging site (subdomain) to load its media upload files from the production site’s uploads folder. It gets even better, because if you (stupidly) upload a media file to the staging site’s Media Library in WordPress, it will be retained by the production site’s folder… however, that new upload will not be recognized in the production site’s WordPress database unless/until you sync the staging database to production, which is a different matter.
Routine:
- runs /var/www/ss-sync-staging