Last active
April 18, 2016 17:38
-
-
Save Luis-Palacios/5966ae7cc7db2b7e0a2c to your computer and use it in GitHub Desktop.
Backing up data from a server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar -zcvf media.tar.gz media/ | |
as root user | |
pg_dump -h localhost -U Dbuser DbName > /path/fileName.sql | |
from psqlconsle | |
\i E:/file.sql | |
GRANT SELECT ON ALL TABLES IN SCHEMA public TO myuser; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment