Did you run it in docker?
If not, then you need to have a /storage directory exist or you need to replace this path to the existing location, like your data location.
if you run this in the docker container, your actual storage location should be bind to /storage inside the container, so check your binding (--mount option).
cat /dump_all.sql | grep -v TRANSACTION | grep -v ROLLBACK | grep -v COMMIT >/storage/dump_all_notrans.sql
bash: /storage/dump_all_notrans.sql: No such file or directory
bash: cat /dump_all.sql: No such file or directory
grep -v TRANSACTION: command not found
grep -v ROLLBACK: command not found
tried many options with full path in both places like this:
cat /home/user/storj/storage/dump_all.sql | grep -v TRANSACTION | grep -v ROLLBACK | grep -v COMMIT >/home/user/storj/storage/dump_all_notrans.sql
bash: cat /home/user/storj/storage/dump_all.sql: No such file or directory
grep -v ROLLBACK: command not found
grep -v TRANSACTION: command not found
1 user@user:~/storj/storage$ cd /home/user/storj/storage/
user@user:~/storj/storage$ ls
bandwidth.db dump_all.sql info.db orders.db-wal piece_spaced_used.db satellites.db storage-dir-verification trash
bandwidth.db-shm dump_all_notrans.sql notifications.db piece_expiration.db pieceinfo.db satellites.db-shm storage_usage.db used_serial.db
bandwidth.db-wal garbage orders.db piece_expiration.db-shm pricing.db satellites.db-wal temp
blobs heldamount.db orders.db-shm piece_expiration.db-wal reputation.db secret.db test.txt
user@user:~/storj/storage$
have no idea, the path is exact when i copy/paste the path from error, and use with “cd” i go there and see needed file, but the script can’t find.
also very strange, that it can’t see the file “dump_all.sql”.
As you can see i’m running this command inside “storage/” folder. And after “ls” dump_all.sql is visible here. Why the command “cat” can’t see it ?