Seeking Advice on Automated Active Storage Backup #827
Unanswered
abratashov
asked this question in
Q&A
Replies: 1 comment
-
Because currently I've found only one simple semi-manual approach: # Install rclone
sudo apt install rclone
# Add AWS credentials
mkdir ~/.config/rclone && touch ~/.config/rclone/rclone.conf
nano ~/.config/rclone/rclone.conf
[my_app]
type = s3
provider = AWS
env_auth = false
access_key_id = <access_key_id>
secret_access_key = <secret_access_key>
region = eu-west-3
# Run manually or add to Cron tasks
rclone sync /data/public/uploads my_app:backup_files_bucket
# Or by one line without rclone.conf
RCLONE_CONFIG_S3_TYPE=my_app \
RCLONE_CONFIG_S3_ACCESS_KEY_ID=S3_ACCESS_KEY_ID \
RCLONE_CONFIG_S3_SECRET_ACCESS_KEY=S3_SECRET_ACCESS_KEY \
RCLONE_CONFIG_S3_REGION=eu-west-3 rclone \
rclone sync /data/public/uploads my_app:backup_files_bucket |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any good solution to back up / sync files from
public/uploads
orstorage
intoAWS S3
?Need something similar to a DB backup solution like here #654
Beta Was this translation helpful? Give feedback.
All reactions