mnt to srv
This commit is contained in:
parent
9b3a5d5420
commit
8ea222d2e4
@ -2,8 +2,8 @@
|
||||
#! nix-shell -i bash -p bash rsync
|
||||
|
||||
# remote_server=miniserver
|
||||
# local_directory=/mnt/pool/cloud
|
||||
# remote_directories=(/mnt/pool /home/jawz/Multimedia /home/jawz/Pictures /home/jawz/gallery-dl)
|
||||
# local_directory=/srv/pool/cloud
|
||||
# remote_directories=(/srv/pool /home/jawz/Multimedia /home/jawz/Pictures /home/jawz/gallery-dl)
|
||||
shopt -s extglob
|
||||
|
||||
# for remote_dir in "${remote_directories[@]}"; do
|
||||
@ -18,7 +18,7 @@ sync() {
|
||||
echo "Syncing $1"
|
||||
rsync -avzr --info=progress2 --info=name0 \
|
||||
--remove-source-files \
|
||||
-e ssh /mnt/miniserver/"$1"/ /mnt/server/"$1"
|
||||
-e ssh /srv/miniserver/"$1"/ /srv/server/"$1"
|
||||
}
|
||||
|
||||
sync pool/scrapping/JawZ
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
#! nix-shell -i bash -p bash gnome.zenity firefox
|
||||
|
||||
# Path to the list file
|
||||
LIST_PATH="/mnt/miniserver/jawz/.config/jawz/lists/jawz/watch.txt"
|
||||
KEPT_LINKS_PATH="/mnt/miniserver/jawz/.config/jawz/lists/jawz/kept_links.txt"
|
||||
LIST_PATH="/srv/miniserver/jawz/.config/jawz/lists/jawz/watch.txt"
|
||||
KEPT_LINKS_PATH="/srv/miniserver/jawz/.config/jawz/lists/jawz/kept_links.txt"
|
||||
|
||||
# Check if the list file exists
|
||||
if [[ ! -f $LIST_PATH ]]; then
|
||||
|
||||
@ -666,7 +666,7 @@
|
||||
<value name="GuiArgs" type="string" data='-icon "%USERPROFILE%\AppData\Local\lxss\bash.ico"'/>
|
||||
<value name="Active" type="long" data="0"/>
|
||||
<value name="Count" type="long" data="1"/>
|
||||
<value name="Cmd1" type="string" data='set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -cur_console:pm:/mnt'/>
|
||||
<value name="Cmd1" type="string" data='set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -cur_console:pm:/srv'/>
|
||||
</key>
|
||||
</key>
|
||||
<key name="Apps" modified="2018-12-31 12:28:23" build="180528">
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
#! 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_filtered 'organized'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#! /nix/store/kxkdrxvc3da2dpsgikn8s2ml97h88m46-bash-interactive-5.2-p15/bin/bash
|
||||
#! 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
|
||||
filtered_directory=$base_directory/organized
|
||||
|
||||
|
||||
@ -19,9 +19,9 @@ service = Service(GeckoDriverManager().install())
|
||||
driver = webdriver.Firefox(service=service, options=options)
|
||||
|
||||
# Directory containing the image files
|
||||
source_dir = Path("/mnt/server/jawz/Pictures/To Organize")
|
||||
target_dir = Path("/mnt/server/pool/scrapping/JawZ/gallery-dl")
|
||||
delete_dir = Path("/mnt/server/jawz/Pictures/To Organize/to_delete/")
|
||||
source_dir = Path("/srv/server/jawz/Pictures/To Organize")
|
||||
target_dir = Path("/srv/server/pool/scrapping/JawZ/gallery-dl")
|
||||
delete_dir = Path("/srv/server/jawz/Pictures/To Organize/to_delete/")
|
||||
|
||||
|
||||
# Function to get Twitter username from tweet status ID
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user