Discussion cp files from old server

m4ff3w

Blitz 3rd Class
Original poster
Donor
Donor
3
0
PG Version
8.5.8
Mount Type
Blitz Encrypted
Server Type
Local - Dedicated Server
Hey yall. First off, massive thanks and props to the whole PGBlitz/Plexguide team! This shiz is awesome.

I lost 32TB of media last year when my raid controller and/or backplane died. I'm now back up to >22TB and currently pushing that to a encrypted team drive @ 93MB/s (I love Google Fiber)

I'm coping /mnt/old_windows_share/Films/* to /mnt/move/Movies

I'd like to be able to do a do a cp -rvn /mnt/old_windows_share/Films/* /mnt/unionfs/Movies

Would that work? Based on my understand of <https://github.com/PGBlitz/PGBlitz.com/wiki/Data-Flow> it should. But I want to make sure I won't break anything

Thanks!
 

MrDoob

Administrator
Project Manager
Donor
1,248
332
Basically yes .
But do you use "pgmove" (.gdrive ) or "pgblitz" (tdrive)
Edit ...

But dont copt the first directly to
/mnt/unionfs/{name.of.folder}
 
Last edited:

MrDoob

Administrator
Project Manager
Donor
1,248
332
Or use this way

1 .) sudo mkdir /mnt/scripte
2.) cd /mnt/scripte && nano copyto.sh
3.) sudo chown -cR 1000:1000 /mnt/scripte && sudo chmod -R 755 /mnt/scripte
4.) Past the lines below and follow the rest


Bash:
#!/bin/bash

while [ 1 ]; do

rm /var/plexguide/moveto.log

echo "" >> /var/plexguide/moveto.log
echo "----------------------------" >> /var/plexguide/moveto.log
echo "PG Blitz Log - First Startup" >> /var/plexguide/moveto.log


  rclone moveto "/mnt/old_windows_share/Films/" "/mnt/move/Movies/" \  --log-file=/var/plexguide/moveto.log \
  --log-level INFO --stats 5s --stats-file-name-length 0 \
  --transfers 6 \
  --max-size 300G\
  --checkers 8 \
  --ignore-existing \
  --exclude="**_HIDDEN~" --exclude=".unionfs/**" \
  --exclude='**partial~' --exclude=".unionfs-fuse/**" \
  --exclude=".fuse_hidden**" \
  --exclude="**sabnzbd**" --exclude="**nzbget**" \
  --exclude="**qbittorrent**" --exclude="**rutorrent**" \
  --exclude="**deluge**" --exclude="**transmission**" \
  --exclude="**jdownloader**" --exclude="**makemkv**" \
  --exclude="**handbrake**" --exclude="**bazarr**" \
  --exclude="**ignore**"  --exclude="**inProgress**"

echo "Cycle  - Sleeping for 30 seconds " >> /var/plexguide/moveto.log
  cat /var/plexguide/moveto.log | tail -200 > cat /var/plexguide/moveto.log
  #sed -i -e "/Duplicate directory found in destination/d" /mnt/log/moveto.log

  sleep 3h

done
~~

Code:
cd /etc/systemd/system  && cp pgblitz.service copyto.service
Code:
nano copyto.service
Bash:
[Service]
User=0
Group=0
Type=simple
ExecStart=/bin/bash /mnt/scripte/copyto.sh
KillMode=process

[Install]
WantedBy=multi-user.target
sudo service copyto start
sudo service copyto status

The rest made the script for you
 
Last edited:
  • Like
Reactions: kotua

MrDoob

Administrator
Project Manager
Donor
1,248
332
If you want a copy of the files change this line only


Code:
rclone moveto
to
Code:
rclone copyto
 
  • Like
Reactions: Admin9705

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.


Development Donations

 

Trending