Categories

    Amazon S3/Cloud Storage: How to configure cron job and Sync data (images, fonts, css and js) to Amazon S3

    Before you start syning files to S3, you need to setup con job in your server: 

    Please Go to Admin dashboard --> System Admin --> Tasks to get the command line that you need to setup cronjob (see below screenshot). You can setup cron via cpanel or ssh. Contact your hosting if you don't know how to do that.  Normally, the command line will be "wget -qO- 'https://domain.com/cron/task/run?key=3FSE@' &> /dev/null . Send this command line to your hosting if you want to ask them help you.

     

     

    Sync missing images, fonts, css and js to Amazon S3


    If S3 is enable and you find out some resources like css, font...are missing like the below screenshot. Please follow the below instructions to fix.

     

     

    Go to admin dashboard --> System Admin --> Storage System --> Manage Storage Services. Click on "Synchronise webroot directory", and you willl see below popup.

    Check Image, font, Cascading style sheets, Javascript then check the folders under "Webroot" that you have not syned/transfered to S3 before.

    For example in the below picture you will tranfer files (images, fonts, css and js) in "img" and "js" folder to S3

     

     

    Click OK to start Sync progress. You need to wait for a few minutes or may a few hours incase you have a lot of files that need to upload from selected folders to S3. The cronjob that you setup above will do this job so that you can close the web browser after clicking on "OK" button to sync. 

    Tranfer data to S3: In the setting page you will see a button called "Transfer", please click on this button if you enable S3 after site have launched long time ago to manually transfer all data such image, video... that uploaded by members before s3 is anabled to amazon.

    Clear caches: If you have any problems after s3 is enable. Clear caches and then try again. 

    Hope it helps.

    Share
    0% users marked this FAQ as helpful. Is this FAQ helpful?

    Yes No

Comments (14)

No login
  • Gary and Rhonda
  • Gary and Rhonda
  • Gary and Rhonda
  • Gary and Rhonda
  • Gary and Rhonda
  • Gary and Rhonda
  • ketkew
  • Gary and Rhonda
  • ketkew
  • Gary and Rhonda
  • ketkew
  • Gary and Rhonda