mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-28 19:50:42 +00:00
Remove everything and restart blank
This commit removes all files currently present in the repo, to prepare for a start from a nothing. This is done due to my recent migration from X11 to Wayland, which has rendered most of these config files no longer releveant. I've currently been tracking my dotfiles in a separate repository, in hopes to get it to a state where it would be mergable here, but that turned out to be much more difficult than I anticipated, and I think it will be much easier to simply move over the history from this temporary repository I've been using onto this one. That however requires a start from a clean point, which this commit creates.
This commit is contained in:
parent
eadb37961b
commit
b912871070
206 changed files with 0 additions and 15683 deletions
|
@ -1,37 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Script to perform incremental backups using rsync
|
||||
# It is often ran as crontab rule for automated backup solution
|
||||
#
|
||||
# This script will respect .rsync-filter files, which can be used
|
||||
# to define custom exclude rules for files/dirs in which it is present
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "Invalid amount of arguments passed!"
|
||||
echo "Arguments: [Source path] [Backup path]"
|
||||
echo " Source path: directory to be backed up, usually '/'"
|
||||
echo " Backup path: directory to back up to (destination), usually mounted drive"
|
||||
exit
|
||||
fi
|
||||
|
||||
SOURCE_DIR="$1"
|
||||
BACKUP_DIR="$2"
|
||||
DATETIME="$(date '+%Y-%m-%d_%H:%M:%S')"
|
||||
BACKUP_PATH="${BACKUP_DIR}/${DATETIME}"
|
||||
LATEST_LINK="${BACKUP_DIR}/latest"
|
||||
|
||||
mkdir -p "$BACKUP_DIR"
|
||||
|
||||
rsync -avHAXS \
|
||||
--delete \
|
||||
--filter='dir-merge /.rsync-filter' \
|
||||
--link-dest "${LATEST_LINK}" \
|
||||
"${@:3}" "${SOURCE_DIR}/" "${BACKUP_PATH}"
|
||||
|
||||
# Only attempt to override the symlink if we made new backup_path
|
||||
# user might've passed --dry-run option in which case we wouldn't
|
||||
# want to override latest symlink to non-existent location
|
||||
if [ -d "${BACKUP_PATH}" ]; then
|
||||
rm "${LATEST_LINK}" 2>/dev/null
|
||||
ln -s "${BACKUP_PATH}" "${LATEST_LINK}"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue