I used to develop through ssh with vscode remote feature and I wanted to move the code to my computer, create a git repository and keep track of changes like that, then deploy to the previous remote.
I was doing a tar -czf ./laravel_site.tar.gz ./laravel_site and it was taking a lot of time beacuse of 800MB of images.
I canceled and executed rm -rf laravel_site.tar.gz
Then I pressed up in the terminal thinking I would get the tar -czf command and executed rm -rf laravel_site.tar.gz ./laravel_site
I think I have most of the php files from a previous scp that I also stopped because of the images.
But I don't think I can hope for scp to have copied all the files because when I stopped it I had already copied
Code: Select all
./app
./bootstrap
./config
./public
./resources
./routes
./storage
./tests
.env.example
.styleci.yml
package-lock.json
phpunit.xml
README.md
webpack.mix.js
Anyway, I made a copy with dd I don't even remember of what but I can mount it with
Code: Select all
#!/usr/bin/env bash
losetup --find --show --partscan --read-only /mnt/dd/image.dd
vgchange -ay
mount -o ro,noload /dev/mapper/centos-root /mnt/p2/
What could I do to try and recover the files? Could I maybe try to recover laravel_site.tar.gz? or should I go for the folder and the individual files??