Bash script WordOps web site backups to AWS S3 Bucket (https://gist.github.com/dingman/177d25471fc4fcca0ac8ed2c3939de15)
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
| // --- BAŞLANGIÇ: BURAYI DÜZENLEYİN --- | |
| var EMAIL_ADDRESS = "E-POSTA_ADRESINIZI_BURAYA_YAZIN"; // Bildirimlerin geleceği e-posta adresi (örn: "rapor@ajans.com") | |
| var SPREADSHEET_URL = "GOOGLE_SHEET_URL_UNUZU_BURAYA_YAPISTIRIN"; // 1. Adımda oluşturduğunuz E-Tablonun tam URL'si | |
| var SHEET_NAME = "KalitePuanlari"; // Hafıza sekmesinin adı (Değiştirmeyin) | |
| var LOG_SHEET_NAME = "DeğişimLogu"; // Tarihsel log sekmesinin adı (Değiştirmeyin) | |
| // --- BİTİŞ: BURAYI DÜZENLEYİN --- | |
| // Güncel tarihi "GG.AA.YYYY" formatında almak için. | |
| function getFormattedDate() { |
| import os | |
| import subprocess | |
| import boto3 | |
| from datetime import datetime | |
| def backup_wordops_website_to_s3(bucket_name, local_folder, db_name, db_user, db_password): | |
| s3_client = boto3.client('s3') | |
| site_name = local_folder.split('/')[-2] | |
| backup_filename = f'{site_name}_backup_{datetime.now().strftime("%Y%m%d_%H%M%S")}.tar.gz' | |
| temp_folder = '/tmp' |
Bash script WordOps web site backups to AWS S3 Bucket (https://gist.github.com/dingman/177d25471fc4fcca0ac8ed2c3939de15)
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
| <a href="https://212medya.com.tr/google-reklamlari/">Google Reklam Verme</a> |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |