Created
October 23, 2013 14:38
-
-
Save behboud/7120053 to your computer and use it in GitHub Desktop.
change data dir postgresql
This file contains 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
Copy the datadir while retaining permissions - use cp -aRv. | |
Then (easiest, as it avoids the need to modify initscripts) just move the old datadir aside and symlink the old path to the new location. | |
Beispiele | |
Im folgenden Beispiel wird eine Verknüpfung ("Verknüpfung_mit_Tagesplaner") im Homeverzeichnis des Benutzers Benutzer zu einer Datei mit dem Namen "haupt.doc" auf dem Desktop erstellt: | |
ln -s /home/Benutzer/Dokumente/Tagesplaner/Aufgaben/haupt.doc /home/Benutzer/Arbeitsfläche/Verknüpfung_mit_Tagesplaner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment