This is a command line tool for syncing with DigitalOcean Spaces or Amazon S3.
I'm using this in the context of .gitignore'ing Assets from a Statamic site.
DigitalOcean Spaces with s3cmd
- SSH into server
This is a command line tool for syncing with DigitalOcean Spaces or Amazon S3.
I'm using this in the context of .gitignore'ing Assets from a Statamic site.
DigitalOcean Spaces with s3cmd
location / { | |
proxy_pass http://localhost:3000/; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; | |
proxy_set_header Host $host; | |
proxy_cache_bypass $http_upgrade; | |
} |
<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<Rule> | |
<ID>Prune files starting with backup- after 30 days</ID> | |
<Prefix>backup-</Prefix> | |
<Status>Enabled</Status> | |
<Expiration> | |
<Days>30</Days> | |
</Expiration> | |
</Rule> | |
</LifecycleConfiguration> |
wget -e robots=off --mirror --page-requisites --convert-links --adjust-extension --no-if-modified-since --no-check-certificate --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" https://example.com |
Warning: This process rewrites history. Teams beware!
I've found this useful to remove images from being stored within a Statamic website's repo and instead being backed-up to Digitalocean spaces. GitHub recommends this and I've followed this process a few times. Your mileage may vary.
1. Check current size of repo (on dev server or locally):