MaruNote
  • Study Notes
    • Nmap + Nessus Cheat Sheet
    • SQL Injection Fundamentals
      • SQL Argument
      • Introduction
      • Subverting Query Logic
      • Using Comments
      • Union Clause
      • Union Injection
      • Database Enumeration
      • Reading Files
      • Writing Files
      • Mitigation
      • Skill Assessment
    • Stack-Based Buffer Overflows on Linux x86
      • Introduction
    • Stack-Based Buffer Overflows on Windows x86
      • Introduction
  • Tech Notes
    • Linux Cookbook
      • [Ubuntu] Limiting Lenovo Laptop Battery Charging to 80% in Ubuntu
      • [Debian] Firefox User Exprience
    • Windows Cookbook
    • MacOS Cookbook
    • NGFW
    • Rclone
    • Jellyfin
    • Docker
    • Wireguard
    • Powerlevel10k
  • Troubleshooting
    • [Python] error: Microsoft Visual C++ 14.0 or greater is required.
  • Code Draft
    • Python Network Reconnaissance
    • Java File Management
    • Synology Schedule Task
Powered by GitBook
On this page
  1. Code Draft

Synology Schedule Task

d="$(date +"%Y-%m-%d")"
dir="Onedrive Archive"
cd '/volume1/Backup'
mkdir "$dir"/"$d"
cp -r Onedrive/* "$dir"/"$d"
find "$dir" -type d -mtime +10 -exec rm -rf {} +

PreviousJava File Management

Last updated 5 months ago