gm3dmo / cmp

GNU General Public License v3.0
0 stars 1 forks source link

Images Backup/Dump #218

Open gm3dmo opened 3 weeks ago

gm3dmo commented 2 weeks ago
  396  cd /sites/corpsofmilitarypolice.org/www/media/grave_images/
  397  cd soldier_id/
  398  ls /root\
  399  ls /root
  400  mv /root/6225.jpg .
  401  cd ..
  402  ls
  403  cd ..
  404  ls -ltrh
  405  vi acknowledgements.html 
  406  cd grave_images/soldier_id/
  407  mv /root/6090.jpg .
  408  ls -ltrh
  409  cd cmp-tools/
  410  ls
  411  ./dump-all-to-csv.sh 
  412  ls -ltrh
  413  history 
  414   grep grave-images
  415  history | grep grave_images
  416  cd /sites/corpsofmilitarypolice.org/www/media/
  417  ls
  418  set -o vi
  419  zip -ry grave-images-2024-07-29.zip grave_images/
  420  ls -ltrh
gm3dmo commented 2 weeks ago
iso_date=$(date +'%Y-%m-%d')
cd /sites/corpsofmilitarypolice.org/www/media/
zip -ry grave-images-${iso_date}.zip grave_images/
mv grave-images-${iso_date}.zip /root
# scp the grave images file to my box

Now use photo.py to create the archive by soldier id rather than army numbers.