Skip to content

Instantly share code, notes, and snippets.

View Rajdave69's full-sized avatar
💖
rajdave on discord

Raj Dave Rajdave69

💖
rajdave on discord
View GitHub Profile
@Rajdave69
Rajdave69 / sftp-server-backup.sh
Created June 25, 2023 06:18
This is a simple script that can backup a directory of a server to another server with SFTP.
#!/bin/sh
# Put FTP server details here
SERVER="" # server ip/fdqn
USERNAME=""
PASSWORD=""
# local directory containing source backup files
SOURCEFILES="/var/lib/pterodactyl/volumes/"
# temporary tar.gz file path
@Rajdave69
Rajdave69 / cloudflare-ddns.py
Last active October 8, 2022 14:12
A simple DDNS (Dynamic DNS) Script for Cloudflare.
"""
This is a public script made by RajDave69 on GitHub
This script implements DDNS (Dynamic DNS) for users using CloudFlare.
It's super easy to configure and deploy too! Just run it as a daemon.
"""
from cloudflare_ddns import CloudFlare
import time