mnt to srv

This commit is contained in:
Danilo Reyes 2024-10-24 14:40:36 -06:00
parent 9b3a5d5420
commit 8ea222d2e4
6 changed files with 11 additions and 11 deletions

View File

@ -2,8 +2,8 @@
#! nix-shell -i bash -p bash rsync #! nix-shell -i bash -p bash rsync
# remote_server=miniserver # remote_server=miniserver
# local_directory=/mnt/pool/cloud # local_directory=/srv/pool/cloud
# remote_directories=(/mnt/pool /home/jawz/Multimedia /home/jawz/Pictures /home/jawz/gallery-dl) # remote_directories=(/srv/pool /home/jawz/Multimedia /home/jawz/Pictures /home/jawz/gallery-dl)
shopt -s extglob shopt -s extglob
# for remote_dir in "${remote_directories[@]}"; do # for remote_dir in "${remote_directories[@]}"; do
@ -18,7 +18,7 @@ sync() {
echo "Syncing $1" echo "Syncing $1"
rsync -avzr --info=progress2 --info=name0 \ rsync -avzr --info=progress2 --info=name0 \
--remove-source-files \ --remove-source-files \
-e ssh /mnt/miniserver/"$1"/ /mnt/server/"$1" -e ssh /srv/miniserver/"$1"/ /srv/server/"$1"
} }
sync pool/scrapping/JawZ sync pool/scrapping/JawZ

View File

@ -2,8 +2,8 @@
#! nix-shell -i bash -p bash gnome.zenity firefox #! nix-shell -i bash -p bash gnome.zenity firefox
# Path to the list file # Path to the list file
LIST_PATH="/mnt/miniserver/jawz/.config/jawz/lists/jawz/watch.txt" LIST_PATH="/srv/miniserver/jawz/.config/jawz/lists/jawz/watch.txt"
KEPT_LINKS_PATH="/mnt/miniserver/jawz/.config/jawz/lists/jawz/kept_links.txt" KEPT_LINKS_PATH="/srv/miniserver/jawz/.config/jawz/lists/jawz/kept_links.txt"
# Check if the list file exists # Check if the list file exists
if [[ ! -f $LIST_PATH ]]; then if [[ ! -f $LIST_PATH ]]; then

View File

@ -666,7 +666,7 @@
<value name="GuiArgs" type="string" data='-icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"'/> <value name="GuiArgs" type="string" data='-icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"'/>
<value name="Active" type="long" data="0"/> <value name="Active" type="long" data="0"/>
<value name="Count" type="long" data="1"/> <value name="Count" type="long" data="1"/>
<value name="Cmd1" type="string" data='set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" &amp; %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -cur_console:pm:/mnt'/> <value name="Cmd1" type="string" data='set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" &amp; %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -cur_console:pm:/srv'/>
</key> </key>
</key> </key>
<key name="Apps" modified="2018-12-31 12:28:23" build="180528"> <key name="Apps" modified="2018-12-31 12:28:23" build="180528">

View File

@ -2,7 +2,7 @@
#! nix-shell -i fish -p fish #! nix-shell -i fish -p fish
set d_parent '/mnt/disk2/scrapping/JawZ' set d_parent '/srv/disk2/scrapping/JawZ'
set d_gdl 'gallery-dl' set d_gdl 'gallery-dl'
set d_gdl_filtered 'organized' set d_gdl_filtered 'organized'

View File

@ -1,7 +1,7 @@
#! /nix/store/kxkdrxvc3da2dpsgikn8s2ml97h88m46-bash-interactive-5.2-p15/bin/bash #! /nix/store/kxkdrxvc3da2dpsgikn8s2ml97h88m46-bash-interactive-5.2-p15/bin/bash
#! nix-shell -i bash -p bash fd ripgrep #! nix-shell -i bash -p bash fd ripgrep
base_directory='/mnt/disk2/scrapping/JawZ' base_directory='/srv/disk2/scrapping/JawZ'
gdl_directory=$base_directory/gallery-dl gdl_directory=$base_directory/gallery-dl
filtered_directory=$base_directory/organized filtered_directory=$base_directory/organized

View File

@ -19,9 +19,9 @@ service = Service(GeckoDriverManager().install())
driver = webdriver.Firefox(service=service, options=options) driver = webdriver.Firefox(service=service, options=options)
# Directory containing the image files # Directory containing the image files
source_dir = Path("/mnt/server/jawz/Pictures/To Organize") source_dir = Path("/srv/server/jawz/Pictures/To Organize")
target_dir = Path("/mnt/server/pool/scrapping/JawZ/gallery-dl") target_dir = Path("/srv/server/pool/scrapping/JawZ/gallery-dl")
delete_dir = Path("/mnt/server/jawz/Pictures/To Organize/to_delete/") delete_dir = Path("/srv/server/jawz/Pictures/To Organize/to_delete/")
# Function to get Twitter username from tweet status ID # Function to get Twitter username from tweet status ID