<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Script on Planet Hawleywood</title><link>https://blog.planethawleywood.com/tags/script/</link><description>Recent content in Script on Planet Hawleywood</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 07 May 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.planethawleywood.com/tags/script/index.xml" rel="self" type="application/rss+xml"/><item><title>Generic Directory Backup Script</title><link>https://blog.planethawleywood.com/posts/generic-directory-backup-script/</link><pubDate>Sun, 07 May 2023 00:00:00 +0000</pubDate><guid>https://blog.planethawleywood.com/posts/generic-directory-backup-script/</guid><description>&lt;p&gt;I regularly have directories of files I want to back up in case of disaster. Usually these are files that change often, and I only want to keep recent versions in case I want to revert or recover changes. (Git? Git, who?)&lt;/p&gt;
&lt;p&gt;I have used this script over and over as a simple way to archive a directory to a location with a date-stamped filename. It also cleans up after itself by deleting files older than X days. I stick it in CRON and let it run on a schedule and I always have an archive of the last X days of the files in my directory.&lt;/p&gt;</description></item></channel></rss>