Skip to content

Instantly share code, notes, and snippets.

@leonardoAlonso
Last active January 28, 2021 16:38
Show Gist options
  • Select an option

  • Save leonardoAlonso/a680569b1cb1cd9747790bb2b0d1223c to your computer and use it in GitHub Desktop.

Select an option

Save leonardoAlonso/a680569b1cb1cd9747790bb2b0d1223c to your computer and use it in GitHub Desktop.
Comandos utilies linux
Eliminar usando regex
ls | grep -P "regex" | xargs -d"\n" rm
Descomprimir tat.bz2
tar -xjvf example.tar.bz2
restore postgresql database with dump file
pg_restore -j NWORKERS -n -F d THE_BACKUP_DIR -d DATABASE_NAME -x -O -n public
login on postgresql
sudo -u postgres psql postgres
sudo -u postgres psql
rsync --verbose --progress --stats --recursive --times --perms --links -z filestore/* ~/.local/share/Odoo/filestore/benandfrank/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment