Skip to content

Instantly share code, notes, and snippets.

@behboud
Created October 23, 2013 14:38
Show Gist options
  • Save behboud/7120053 to your computer and use it in GitHub Desktop.
Save behboud/7120053 to your computer and use it in GitHub Desktop.
change data dir postgresql
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