1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2025-04-19 09:10:00 -05:00

Compare commits

..

2 commits

Author SHA1 Message Date
6212ece49d
chg: Location for pkglists 2025-03-14 12:42:10 -05:00
778acd9c26
chg: Use uv instead of pipx 2025-03-14 12:33:32 -05:00
3 changed files with 7 additions and 7 deletions

View file

@ -66,7 +66,7 @@ echo $'\n'$(date) "| Done!" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
echo "--------------------------------------------------" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
echo $(date) "| Pulling pkglists_server from server..." | tee -a "$LGDIR/TempStorage/impfilesbk.log"
rsync -aAXH --delete --stats "$BKDIR_HDD/Documents/Backup/pkglists_server/" "$HMDIR/Documents/Backup/pkglists_server/" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
rsync -aAXH --delete --stats "$BKDIR_HDD/Documents/Backup/pkglists/server/" "$HMDIR/Documents/Backup/pkglists/server/" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
echo $'\n'$(date) "| Done!" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
echo "--------------------------------------------------" | tee -a "$LGDIR/TempStorage/impfilesbk.log"

View file

@ -9,7 +9,7 @@ if [ "$(id -u)" -eq 0 ]; then
fi
# define location for output
DIR=/home/sintan/Documents/Backup/pkglists
DIR=/home/sintan/Documents/Backup/pkglists/laptop
# make sure that the folder exists
mkdir -p $DIR
@ -21,6 +21,6 @@ command -v dnf &> /dev/null && dnf list installed > $DIR/dnf
# list and save pip packages
command -v pip &> /dev/null && pip list | awk '{print $1}' | tail -n +3 > $DIR/pip
# list and save pipx packages
command -v pipx &> /dev/null && pipx list | grep package | awk '{print $2}' > $DIR/pipx
# list and save uv packages
command -v uv &> /dev/null && uv tool list | grep -vE '^-.*' | awk '{print $1}' > $DIR/uv

View file

@ -11,7 +11,7 @@ if [ "$(id -u)" -eq 0 ]; then
fi
# define location for output
DIR=/mnt/storage/Documents/Backup/pkglists_server
DIR=/mnt/storage/Documents/Backup/pkglists/server
# make sure that the folder exists
mkdir -p $DIR
@ -23,6 +23,6 @@ command -v dnf &> /dev/null && dnf list installed | awk '{print $1}' | tail -n +
# list and save pip packages
command -v pip &> /dev/null && pip list | awk '{print $1}' | tail -n +3 > $DIR/pip
# list and save pipx packages
command -v pipx &> /dev/null && pipx list | grep package | awk '{print $2}' > $DIR/pipx
# list and save uv packages
command -v uv &> /dev/null && uv tool list | grep -vE '^-.*' | awk '{print $1}' > $DIR/uv