This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gspread | |
import pandas as pd | |
from gspread_dataframe import set_with_dataframe | |
import os | |
current_dir = os.path.dirname(os.path.realpath(__file__)) | |
service_account_file = current_dir + '/service_account.json' | |
google_credentials = gspread.service_account(service_account_file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir bkp | |
sudo apt install borgbackup -y | |
borg init --encryption none bkp/ | |
crontab -e | |
# 0 12 * * * borg create ~/bkp::Downloads-$(date '+\%m-\%d-\%Y') ~/Downloads/ | |
tail -f /var/log/syslog | grep CRON | |
borg list bkp | |
mkdir test-extraction | |
cd test-extraction | |
borg extract ../bkp::Downloads home/e/Downloads |