mirror of
https://github.com/SinTan1729/random.git
synced 2025-04-19 09:10:00 -05:00
Compare commits
2 commits
f4c3512f4d
...
6212ece49d
Author | SHA1 | Date | |
---|---|---|---|
6212ece49d | |||
778acd9c26 |
3 changed files with 7 additions and 7 deletions
|
@ -66,7 +66,7 @@ echo $'\n'$(date) "| Done!" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
||||||
echo "--------------------------------------------------" | 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"
|
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 $'\n'$(date) "| Done!" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
||||||
|
|
||||||
echo "--------------------------------------------------" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
echo "--------------------------------------------------" | tee -a "$LGDIR/TempStorage/impfilesbk.log"
|
||||||
|
|
|
@ -9,7 +9,7 @@ if [ "$(id -u)" -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# define location for output
|
# define location for output
|
||||||
DIR=/home/sintan/Documents/Backup/pkglists
|
DIR=/home/sintan/Documents/Backup/pkglists/laptop
|
||||||
|
|
||||||
# make sure that the folder exists
|
# make sure that the folder exists
|
||||||
mkdir -p $DIR
|
mkdir -p $DIR
|
||||||
|
@ -21,6 +21,6 @@ command -v dnf &> /dev/null && dnf list installed > $DIR/dnf
|
||||||
# list and save pip packages
|
# list and save pip packages
|
||||||
command -v pip &> /dev/null && pip list | awk '{print $1}' | tail -n +3 > $DIR/pip
|
command -v pip &> /dev/null && pip list | awk '{print $1}' | tail -n +3 > $DIR/pip
|
||||||
|
|
||||||
# list and save pipx packages
|
# list and save uv packages
|
||||||
command -v pipx &> /dev/null && pipx list | grep package | awk '{print $2}' > $DIR/pipx
|
command -v uv &> /dev/null && uv tool list | grep -vE '^-.*' | awk '{print $1}' > $DIR/uv
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ if [ "$(id -u)" -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# define location for output
|
# define location for output
|
||||||
DIR=/mnt/storage/Documents/Backup/pkglists_server
|
DIR=/mnt/storage/Documents/Backup/pkglists/server
|
||||||
|
|
||||||
# make sure that the folder exists
|
# make sure that the folder exists
|
||||||
mkdir -p $DIR
|
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
|
# list and save pip packages
|
||||||
command -v pip &> /dev/null && pip list | awk '{print $1}' | tail -n +3 > $DIR/pip
|
command -v pip &> /dev/null && pip list | awk '{print $1}' | tail -n +3 > $DIR/pip
|
||||||
|
|
||||||
# list and save pipx packages
|
# list and save uv packages
|
||||||
command -v pipx &> /dev/null && pipx list | grep package | awk '{print $2}' > $DIR/pipx
|
command -v uv &> /dev/null && uv tool list | grep -vE '^-.*' | awk '{print $1}' > $DIR/uv
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue