6

Exporting notes from LastPass does not export files that are in some notes so I need to go through every note that has a file in it and backup it manually. It would help to know which notes have files/attachments in them so that I do not need to open every note.

Hrvoje
  • 113
  • 1
  • 6
  • 2
    I agree that would be a helpful feature, but it does not appear to exist. Faced with the same situation, I had to resort to opening each attachment to see if there was an attachment, then manually saving it. The exported data doesn't even mention attachments, so you can't filter the data to find attachments. One might suspect this helps LogMeIn with lock-in for their product. Either way I'm afraid you're out of luck. – Jonathan Dagle Oct 17 '21 at 02:12

2 Answers2

3

The LastPass CLI open source project has a script that does just this. It's a shell script.

https://github.com/lastpass/lastpass-cli/blob/master/contrib/lpass-att-export.sh

Shahar 'Dawn' Or
  • 2,713
  • 1
  • 26
  • 38
  • This script seems to require specific account IDs, which would be difficult for this use case where you need all accounts – Nick McCurdy Jan 07 '23 at 04:19
  • This is the correct answer. The script requires you to be logged in to the LastPass account, so it is fine for a single user, which seems to be the OP's case. – bradw2k Jan 14 '23 at 20:32
  • Another similar solution is here: https://github.com/mindrunner/lastpass-attachment-exporter – whiskeychief May 15 '23 at 14:19
1

You can use lpass-att-export.sh as noted above, but note that the script doesn't work out of the box on a Mac:

  1. The "sed" commands in the script don't work with the Mac version of sed. I got around this by installing gsed (via MacPorts) and modifying the script to use gsed.
  2. The script doesn't properly handle attachment filenames with spaces in them. The attachment exports properly, but the exported filename is only the first part of the name (up to the first space).
schmeel
  • 11
  • 1