commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
%qdbus org.freedesktop.PowerManagement /org/kde/Solid/PowerManagement suspendToRam
Service 'org.freedesktop.PowerManagement' does not exist.
Suspend ssh session
This uses the KDE suspend to ram.
No need to be root to do that. Relies on UPower (previously known as DeviceKit-Power).
It suspends to RAM: you always need your batteries for the RAM but it saves time as there is no need to slowly archive everything on your hard disk.
It works fine with me but if anyone has a nicer way, please contribute.